1. Sang Chul Song
  2. PowerBuilder
  3. Tuesday, 8 March 2022 06:11 AM UTC

AutoBuild PowerClient Json Setting...

==========================================

"BuildPlan": {
"SourceControl": {

"Git": [
{"SrcPath": "https://github.com/Appeon/PowerBuilder-AutoBuild-Sales-SourceCode", "User": "tester@appeon.com", "Password": "YGRrYjc6OzU=", "DestPath": ".\\Build", "Proxy": {"Ip": "","Port": 0,"Username": "","Password": ""}}
],

===========================================

No Property branch.

Test branch is dev, Real branch is master

 

this setting Clone branch is ??

 

how to setting branch?

 

Tom Jiang @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 9 March 2022 07:31 AM UTC
  2. PowerBuilder
  3. # 1

Currently AutoBuild doesn't support switching to a branch when pulling from the repository. I suggest that you include a batch file in your setup to achieve your goal.

Firstly, put the following statement in a download.bat file.
Git clone <url> --branch <branch>
 
Then add the following precommand in your build json file.
"PreCommand": "download.bat",
 
This way, it will run the download.bat to get the branch source code before auto build.

Regards,

Tom Jiang

Comment
  1. Sang Chul Song
  2. Thursday, 10 March 2022 01:23 AM UTC
Will AutoBuild support setting up a branch in the future?

Currently, you have to use git clone as a precommand without setting up git in AutoBuild settings.

It would be good to support Branch in AutoBuild git settings even later.
  1. Helpful
  1. Tom Jiang @Appeon
  2. Thursday, 10 March 2022 05:35 AM UTC
Yes, there is a plan to add support to build from a git branch in a future release of AutoBuild.
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 8 March 2022 20:09 PM UTC
  2. PowerBuilder
  3. # 2

Are you using PB 2019 R3 or newer?  Older PB versions didn't support Git branches.

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