We would like to create patches from command line automatically using Jenkins.
We have created a small script that will update our project aip file and start building it.
The issue is that the Jenkins waits indefinitely for the script to run.
Jenkins output:
---> waiting indefinitely!!!Checking builds status... done.
Build required.
The same script when run from command line will work and the patches will be build.
We suspect that the "advancedinstaller.com" will call MakeCab.exe in a new cmd window, and thus Jenkins is not supporting this feature.
How can we overcome this and call MakeCab.exe in the same window ?
As a note: the .msi file is also build with Jenkins from command line and it works ok(No errors here).
Our power shell commands(doesn't matter could be cmd) for building the patch are the following:
Code: Select all
# $ADVINSTCOM - path to the advancedinstaller.com
# $advInstPatchFilePath is the path to our project
# $curentMsiPackagePath path to the current built msi
# $lastBuildMsi - path to the las successful built msi
# $currPatchOutputPath - path for the output file.
& $ADVINSTCOM /edit $advInstPatchFilePath /NewMspUpgraded -family "Family" -upgraded "Upgraded" -path $curentMsiPackagePath.FullName
#update target version
& $ADVINSTCOM /edit $advInstPatchFilePath /NewMspTarget -upgraded "Upgraded" -target "Target" -path $lastBuildMsi.FullName
#build
# create output path for the patch
$currPatchOutputPath = $CurrOutputPath + "\" + $appName + "_" + $CurrVersion + ".msp"
& $ADVINSTCOM /edit $advInstPatchFilePath /SetPackageName "$currPatchOutputPath"
& $ADVINSTCOM /build "$advInstPatchFilePath"
FOLLOW US
Get the latest news in Application Packaging