1. Gunnar Gisleberg
  2. PowerBuilder
  3. Wednesday, 13 January 2021 07:08 AM UTC

 

Does anybody have experience how to setup Azure pipeline and Autocompiler to compile powerbuilder projects?

The Powerbuilder/Autocompiler version is 2019 R2.

 

 

Arnaud Bailly Accepted Answer Pending Moderation
  1. Wednesday, 13 January 2021 08:28 AM UTC
  2. PowerBuilder
  3. # 1

Yes, we are currently doing it on our project. The basic idea is to setup a custom VM, configure it as an agent to be used by your project's pipeline, and then invoke PBC to build your target(s). Here is the script we are using:

 

Param(

  [Parameter(HelpMessage="Define the version of SAF")]

  [string] $SAFVersion = "0.0.0.0"

)

Write-Host "REMOVE EXECUTABLE ..."

# Previously generated executable files

Remove-Item progsaf_c.exe -ErrorAction SilentlyContinue

# Build SAF executable (exe + pbd files)

Write-Host "COMPILATION ..."

Write-Host "Building version $SAFVersion"

$AutoCompileCommand = "& ""C:\Program Files (x86)\Appeon\AutoCompiler 19.0\pbc190.exe"" /d " + ("progsaf.pbt") + " /o " + ("progsaf_c.exe") + " /w y /f /m n /x 32 /bg y /p ""SAF "" /cp ""Groupe SOLINA"" /de ""Application Législation Alimentaire et R&D"" /cr ""Groupe Solina Development"" /v ""$SAFVersion"" /fv ""$SAFVersion"" /ge 0"

Write-Host "Command: " $AutoCompileCommand

Invoke-Expression -Command $AutoCompileCommand

# seems like invoke-expression does not allow us to do proper error handling

# going to test we generated and .exe

if (!(Test-Path ".\progsaf_c.exe")) {

    Write-Error "No 'progsaf_c.exe' file produced, compilation probably failed."

    Exit 1

}

HTH

Comment
  1. Gunnar Gisleberg
  2. Wednesday, 13 January 2021 09:46 AM UTC
Thank you!

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