Hello I am trying to implement CI/CD with powerbuilder solution
Here is the bat file to build the solution
rem name: pbbuild.bat
rem Description: This script builds the PowerBuilder project using PBAutoBuild and copies the output files to the UAT folder.
@echo off
setlocal
REM Set paths
set BUILDER="C:\Program Files (x86)\Appeon\PowerBuilder 25.0\PBAutoBuild250.exe"
set CONFIG="B:\developer\daniel\Dbdocgen\cmd\pb_build_config_solution.json"
set LOG="B:\developer\daniel\Dbdocgen\output\build\build_log.txt"
set ERRLOG="B:\developer\daniel\Dbdocgen\applog\logs\error_log.txt"
set OUTPUT_DIR="B:\developer\daniel\Dbdocgen\output"
set RELEASE_DIR="B:\developer\release\uat"
REM Run the build
%BUILDER% /f %CONFIG% /l %LOG% /le %ERRLOG%
REM Check if build was successful
IF %ERRORLEVEL% EQU 0 (
echo Build succeeded. Copying files...
xcopy /Y /D "%OUTPUT_DIR%\*.exe" "%RELEASE_DIR%\"
xcopy /Y /D "%OUTPUT_DIR%\*.pbd" "%RELEASE_DIR%\"
echo Files copied to UAT folder.
) ELSE (
echo Build failed. Check logs for details.
)
pause
Here is the json config file
{
"Version": "1.0",
"IDEVersion": "25.0",
"RuntimeVersion": "25.0.0.3683",
"Solution": {
"SolutionName": "B:\\developer\\daniel\\Dbdocgen\\dbdocgen.pbsln",
"Platform": "x64",
"Configuration": "Release"
},
"Compiler": {
"PBDCompile": true,
"PBDOutputDirectory": "output\\pbd"
},
"Output": {
"ExecutableOutputDirectory": "output",
"ExecutableName": "Dbdocgen.exe"
}
}
When I run the bat file, I get:
B:\developer\daniel\Dbdocgen\cmd>pbbuild.bat
B:\developer\daniel\Dbdocgen\cmd>rem name: pbbuild.bat
B:\developer\daniel\Dbdocgen\cmd>rem Description: This script builds the PowerBuilder project using PBAutoBuild and copies the output files to the UAT folder.
12:34:11 [Normal] PBAutoBuild Version: 25.0.0.3683.
12:34:11 [Normal] Work Path: C:\Program Files (x86)\Appeon\PowerBuilder 25.0\pbautobuild250.exe.
12:34:11 [Normal] Runtime Version: 25.0.0.3683.
12:34:11 [Normal] Load file: C:\Users\danie\AppData\Local\Appeon\PowerBuilder 25.0\pb.ini
12:34:12 [Normal] Start processing parse json to model code segment.
12:34:12 [Error] The IDE version in the file is inconsistent with the AutoBuild version.
Bye (-_-)
Build failed. Check logs for details.
Press any key to continue . . .
