1. Aleš Vojáček
  2. PowerBuilder
  3. Friday, 1 October 2021 20:52 PM UTC

Hi all,

I'm trying to switch from orca pbcompiler to PBAutoBuild210.

 

I have builds on TeamCity. 

What I'm doing now is.

I do refresh pbls from ws_objects (but update of vs objects from git is done by TeamCity) so I do only refresh a then build.

 

If i'm using PBAutoBuild210 it seems that it wil regenerate pbls (they are all modified during build).

But any change comes from GIT is not in pbls, nor in deployed applications.

When I open those pbls, objects are nod changed and changes are implemented after manual refresh in PB.

 

I have this in .json file:

"BuildPlan": {
"SourceControl": {
"PreCommand": "",
"SVN": [
{"SrcPath": "","User": "","Password": "","DestPath": "","Proxy": {"Ip": "","Port": 0,"Username": "","Password": ""}}
],
"Git": [
{"SrcPath": "","User": "","Password": "","DestPath": "","Proxy": {"Ip": "","Port": 0,"Username": "","Password": ""}}
],
"VSS": [
{"SrcPath": "","User": "","Password": "","DestPath": ""}
],
"Merging": [
{"Target": "","LocalProjectPath": "","RefreshPbl": true}
],
"PostCommand": ""
},
"BuildJob": {
"PreCommand": "",
"Projects": [
{"Target": "konzultace.pbt","Name": "konzultace_exe"}
],
"PostCommand": ""
}
}

 

Is there something how can I sove this or only solution is stick with orca/pbcompile?

 

Thank you Ales

Accepted Answer
Aleš Vojáček Accepted Answer Pending Moderation
  1. Friday, 1 October 2021 21:39 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi all,

I'm Sorry for disturbing :-(

It is too late here so I overlooked 

"Merging": [
{"Target": "","LocalProjectPath": "","RefreshPbl": true}
],

When I put there pbt and path it looks like it working :-)

"Merging": [
{"Target": "appp.pbt","LocalProjectPath": ".\\","RefreshPbl": true}
],

Last thing is that Application.exe does not have icon (which is in pbr) .

But refreshpbl is working.

 

Sorry again.

Ales

Comment
  1. Armeen Mazda @Appeon
  2. Friday, 1 October 2021 23:54 PM UTC
Thanks for sharing the solution!
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 12 April 2022 19:31 PM UTC
  2. PowerBuilder
  3. # 1

Application icon is now in the source code of the application object so do a check out of the application object and update the icon setting.

Here is a snippet of an application object called 'desktop':

global type desktop from application
string appname = "desktop"
string themepath = "D:\Program Files (x86)\Appeon\PowerBuilder 19.0\IDE\theme"
string themename = "Do Not Use Themes"
boolean nativepdfvalid = false
boolean nativepdfincludecustomfont = false
string nativepdfappname = ""
long richtextedittype = 2
long richtexteditx64type = 3
long richtexteditversion = 1
string richtexteditkey = ""
string appicon = "userobject.ico"
string appruntimeversion = "21.0.0.1311"
end type
global desktop desktop

 

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 12 April 2022 19:44 PM UTC
Hi Roland ... correct. That would be the procedure for any App Object changes. ;-)
  1. Helpful
There are no comments made yet.
Connie Dove Accepted Answer Pending Moderation
  1. Tuesday, 12 April 2022 18:28 PM UTC
  2. PowerBuilder
  3. # 2

Will PBAutoBuild210 work with PB2019R3 or only with PB2021?

Comment
  1. Armeen Mazda @Appeon
  2. Tuesday, 12 April 2022 18:42 PM UTC
Only 2021
  1. Helpful
There are no comments made yet.
Aleš Vojáček Accepted Answer Pending Moderation
  1. Friday, 1 October 2021 21:20 PM UTC
  2. PowerBuilder
  3. # 3

If I try to change 

{"Target": "","LocalProjectPath": "","RefreshPbl": true}

to 

{"Target": "","LocalProjectPath": "","RefreshPbl": false}

 

there is no change in log file.

Refresh is not done and no error displays.

I think that that is resonable to refresh pbls from ws_objects directory only, because build systems like teamcity download changes from git repo automatickly when they triggers build after repository change.

A.

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.