1. Mary Jane Foster
  2. PowerBuilder
  3. Thursday, 24 February 2022 17:55 PM UTC

Hello:

 

This is more of a "Can I?" support question than a how to question.  We recently migrated to PB2021 with Git SCC.  I am wondering if the *.json file (created from the Export Auto Build function within PB) can be pointed to clone from a specific branch on the remote repository?    If so, how and where would I edit the .json file?

Thank you kindly!

 

MJ

Mary Jane Foster Accepted Answer Pending Moderation
  1. Friday, 25 February 2022 17:19 PM UTC
  2. PowerBuilder
  3. # 1

Thank you Ken! 

I had come upon a similar idea last night, you clarified it for me and it worked.  Rather than using a .bat file I am using PowerShell and so far so good.  

As always, thank you for help!

Happy Friday!

Comment
  1. Armeen Mazda @Appeon
  2. Friday, 25 February 2022 18:08 PM UTC
Thanks for confirming the solution!
  1. Helpful
There are no comments made yet.
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Friday, 25 February 2022 08:55 AM UTC
  2. PowerBuilder
  3. # 2

Hi Mary,

I suggest you create a download.bat file that contains the following command to download the Git branch source code (you need install GIT tool first):
git clone <url> --branch <branch>

Then set PreCommand in the build json file as follows:
"PreCommand": "download.bat",

So that when you execute PBAutobuild, it will run download.bat first to download the Git branch source code.

Regards,
Ken

Comment
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.