1. Marco Meoni
  2. PowerBuilder
  3. Tuesday, 14 December 2021 17:43 PM UTC

Hello,

I am using PBAutoBuild210 but have following error when trying to pull the code from GIT before build it.

14:53:53 [Normal] Start processing download source code segment.
14:53:53 [Normal] Start downloading the source code.
14:53:53 [Normal] Execute Git Init
14:53:53 [Normal] Execute Git Connect
14:53:57 [Error] Cannot connect to the repository. Please make sure you have specified the correct repository URL, user ID and password.
14:53:57 [Error] Failed to connect the git remote.
Bye (-_-)


Appeon doc describes how to specify the "SrcPath" option in application project JSON file:

https://docs.appeon.com/pb2021/pbug/ch07s03.html#Build_the_Application_project_with_commands

I assume SrcPath is the typical GIT clone link ending with .git, in my case

https://server.com/group/project/app.git

So, I modify  app.json file as such

{"SrcPath": "https://server.com/group/project/app.git","User": "marmeo","Password": "V2dkZ297OjE0Og==","DestPath": ".\\Build","Proxy": {"Ip": "","Port": 0,"Username": "","Password": ""}}

But the error above pops up.

Appeon doc shows an example with unusual GIT URL (no .git)

{"SrcPath": "https://github.com/Appeon/PowerBuilder-AutoBuild-Sales-SourceCode" ...

which I tried also but same error.
I dont need proxy as GIT repo is internal.
User and (encrypted) pasword are correct.

How to understand further the root of the error? PBAutoBuild120 log and error log dumps show just above error.
Best,
.m

Marco Meoni Accepted Answer Pending Moderation
  1. Thursday, 23 December 2021 07:31 AM UTC
  2. PowerBuilder
  3. # 1

Hi Ken,

I did it on purpose because PBautobuild is used on a nightly build server with no DEV env and local PBLs.
Indeed, with Target and LocalProjectPath the, the refresh works, but the "Calling cm_rebuild_application(CM_REBUILD_FULL)" step requires an enormous amount of time.
In my project, the whole pipeline lasts now ~40mins instead of ~4mins without the 2 options.

But overall it is a nightly build and its working while Im sleeping, so that ok, even if energy saving may have its point. ;-)

Thank you,

.m

Comment
There are no comments made yet.
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 22 December 2021 07:53 AM UTC
  2. PowerBuilder
  3. # 2

Hi Marco,

There is no Merge content set in the Autobuild JSON file you provided which is why it didn’t refresh PBL.

I suggest you set the Merge node referring to the example below:
"Merging": [
    {"Target": ".\\Build\\salesdemo.pbt", "LocalProjectPath": ".\\Build", "RefreshPbl": true}
],

For more details, you can refer to the following link:
https://docs.appeon.com/pb2021/pbug/ug58941.html#Build_the_Application_project_with_commands

Regards,
Ken

Comment
There are no comments made yet.
Marco Meoni Accepted Answer Pending Moderation
  1. Tuesday, 21 December 2021 08:52 AM UTC
  2. PowerBuilder
  3. # 3

better quality screenshot attached

Attachments (1)
Comment
There are no comments made yet.
Marco Meoni Accepted Answer Pending Moderation
  1. Tuesday, 21 December 2021 08:49 AM UTC
  2. PowerBuilder
  3. # 4

Hello,

issue is solved. Fact is, I don't understand what fixed it because, after plenty of corrections, it looks to me that configuration and Git settings are still the ones I posted originally... but not it works! Shame on me.

My next step is exactly what described here (git clone + PBLs refresh + build) for build automation:

https://github.com/Appeon/PowerBuilder-AutoBuild-Sales-Example

Nevertheless, PBL refresh is not working for me.
Below picture shows PB project downloaded via BuildPlan -> SourceControl -> Git (git clone) and

  1. sample DW d_edi_ba_rf source has WHERE clause (old version) while corresponding ws_objects\[...]\d_edi_bar_rf.srd has WHERE clause commented out (new version)
  2. pb autobuild json has RefreshPbl = True
  3. "green dots" next to PB objects confirm they are synch'ed with GIT repo, indeed the correct repo URL is taken from pb autobuild json

Also tried Git Pull from the IDE and full build, but they do not bring latest ws_objects\[...]\d_edi_bar_rf.srd under the PBL.

:-( :-(

.m

Comment
There are no comments made yet.
Marco Meoni Accepted Answer Pending Moderation
  1. Wednesday, 15 December 2021 09:49 AM UTC
  2. PowerBuilder
  3. # 5

Hello Ken,

first of all thanks for your test. Having evidence that it works for you makes clear the problem is on my side (!)

PB of course connects to GIT, the source code is in the repo. I'll review one more time password encryption and JSON syntax and revert to you.

Best,

.m

 

P.S.

Your screenshot is exactly what imho is missing in current documentation, I would add it.

Comment
There are no comments made yet.
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 15 December 2021 09:20 AM UTC
  2. PowerBuilder
  3. # 6

Hi Marco,

 

I tested with the git link http://192.168.168.103/bnb/sub.git which ends with .git and it was successful.

So I suggest you check if your account and password are correct and it would be better if you also test if it can connect successfully in PB IDE.

 

If the issue remains, I suggest you open a ticket to Appeon Support system (https://www.appeon.com/standardsupport/newbug) and provide a testing github link for us to verify, including the account and password.

 

Attached is my test result.

  

Regards,

Ken

 

Attachments (1)
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.