Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Executing additional commands – PB Docs 2022 – PowerBuilder Library

Executing additional commands – PB Docs 2022

Executing additional commands

The entire build & deploy process is made up of several
steps, and additional commands can be executed before and/or after
some particular steps such as the “SourceControl” and “BuildJob”
steps.

Example 1: to add commands to remove a
folder before downloading the source code.

Step 1: Create a bat file which contains the following command,
and save the bat file as Command_DeleteFolder.bat.

ps_tutorial_105.png

Step 2: In the build file, locate the “BuildPlan” block and then
the “PreCommand” setting; and add the file path and name of Command_DeleteFolder.bat.

When the PBAutoBuild220.exe
command is executed later, it will execute the commands in Command_DeleteFolder.bat before it downloads
the source code.

Besides the “PreCommand” setting, there is also a “PostCommand”
setting for the “SourceControl” and “BuildJob” steps, which allows you
to execute commands after that particular step. See Example 2 and 3
for more details.

Example 2: to add commands to start the
PowerServer Web APIs after building the PowerServer project in the
PowerBuilder IDE.

Step 1: Create a bat file which contains the following command,
and save the bat file as startwebapi.bat.

Step 2: In the build file, locate the “BuildJob” block and then
the “PostCommand” setting; and add the file path and name of startwebapi.bat.

When the PBAutoBuild220.exe
command is executed later, it will execute the commands in startwebapi.bat after it finishes building the
PowerServer project.

Example 3: to publish the PowerServer Web
API after building the PowerServer project in the PowerBuilder
IDE.

Step 1: Create a bat file which contains the following command,
and save the bat file as publish.bat.

Step 2: In the exported build file, locate the “BuildJob” block
and then the “PostCommand” setting; and add the file path and name of
publish.bat.

When the PBAutoBuild220.exe
command is executed later, it will execute the commands in publish.bat after it finishes building the
PowerServer project.

Note

The dotnet commands can also
be integrated with Jenkins. See Task 2 for more details.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x