1. Jeff Nesler
  2. PowerBuilder
  3. Wednesday, 10 June 2020 03:24 AM UTC

I've recently migrated about a dozen PB apps from 12.5 up to 2019 R2.  We also moved from TFS to Bitbucket for source control, we're now storing the .pbl's in Bitbucket, and I'm using Bruce Armstrong's tutorial (thanks Bruce!) to get our builds done in a Jenkins pipeline.  One of the steps in the Jenkins tutorial was an Orcascript step. My question is, since the pbl's are now in source control, is Orcascript still necessary or recommended to "bootstrap" the pbl's from their individual object files during a build?   I found in documentation that the .pbg files are no longer necessary when using Orcascript, so I got rid of those, but with all the changes to the structure and functioning of source control between 12.5 and 2019 I'm confused about when and how Orascript would be used.  Any advice or best practice experiences will be helpful.

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 10 June 2020 15:55 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Jeff;

  ORCAScript is still required as its the main link between your GIT repository and the PBC compiler in order to a) create the PBL's on your build machine; and b) synchronize your various object's source code between the GIT repository and your PBL's. After that step, the PBC (external compiler) can be used to complete the EXE & PBD/DLL generation.

Regards ... Chris

Comment
There are no comments made yet.
Jeff Nesler Accepted Answer Pending Moderation
  1. Thursday, 11 June 2020 13:14 PM UTC
  2. PowerBuilder
  3. # 1

Thanks Chris, appreciate the response.  My build in Jenkins is working currently without the Orcascript step because it pulls the pbl's from the repository, but I can see your point about source code being synchronized.  I don't know much about how the compiler works under the hood but I'm assuming the pbc190.exe is just compiling what is in my pbl's in Bitbucket and not necessarily pulling in anything from the individual source files in the ws_objects folder structure.  If someone pushes the individual files and does not upload the respective pbl they could be out of sync?

 

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 11 June 2020 15:46 PM UTC
No, I believe that the GIT push only pushes your various object source within a PBL and not the PBL file itself. That is why the pull of the PBL's on the build machine does not show any changes. You still need an ORCAScript step to get the various object's source code to the downloaded (but static) PBL files on the build machine before the compile step.
  1. Helpful
  1. Jeff Nesler
  2. Thursday, 11 June 2020 19:05 PM UTC
Ok, I guess I was off in my understanding of how it was working with the pbls, we've always previously just stored the source objects without the pbl's. I'll add an Orcascript step to my build and go from there. Thanks Chris for helping me understand it better.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.