I have started to look at an Orca script to create our pbl libraries and import source (boot strapping).
This is based on Bruce Armstrong's blog (https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/175-continuous-integration-with-powerbuilder-2017-bonobo-git-and-jenkins)
So my orca script is
start session set debug true scc set connect property logfile _log scc connect offline scc set target _target refresh_all importonly ;scc set target _target importonly ;scc exclude liblist "pbdom\pbdom170.pbd" scc refresh target migrate ;scc refresh target 3pass scc close end session
My libraries get created. However this errors on my first library at import with this error, so my libraries end up empty;
PBORCA_SccRefreshTarget. Migrate and Full Rebuild Calling cm_rebuild_application(CM_REBUILD_MIGRATE). Library: c:\jenkins\workspace\sample\desktop\lol\desktop\crsapp\crsapp.pbl Object: crs Forward Declarations (0004): Error C0001: Illegal data type: n_tr Errors encountered during import/compile. Check SMS log. PBORCA_SccClose
This refers to my global application transaction declaration (n_tr) for SQLCA. It appears that Orca does not handle global declarations, as the data type referred to has not been imported yet.
I can see several posts reporting this same issue over the years, but with no resolution posted that I can find. Not using orca but purchasing Powergen appears to be a solution.
Is there a solution or workaround for this.
I got it to work by using:
scc refresh target incremental
This get you past the errors.
Then I created a second script with
set application...
set liblist...
build application...
and then run that until I get no errors.
final step is to create a script to build the libraries (we use pbds for each pbl) and then
build executable...
Not fun but it works every time unless your PBGs are messed up.
Was using pborca before to make this somewhat easier but wanted to move completely to an Appeon environment so now every thing works with orcascr17.exe
n a script
Regards,
Vipin