Add timeout on build + begin to fix install on windows
MODIFY
Jenkinsfile
Jenkinsfile
@@ -5,10 +5,12 @@ properties([disableConcurrentBuilds()])
try {
def version = getCommitHash()
cleanUploadFolderIfNeeded(version)
+ timeout(time: 30, unit: 'MINUTES') {
buildArchitecture('32', '61')
buildArchitecture('64', '61')
buildArchitecture('32', '70')
buildArchitecture('64', '70')
+ }
finalizeUpload(version)
} catch(exception) {
currentBuild.result = 'FAILURE'

MODIFY
windows/build-launcher-installer.bat
windows/build-launcher-installer.bat
SETLOCAL
REM VERSION cannot be a string in Advanced Installer. Let's use 0.0.0 for bleeding edge versions
-SET LAUNCHER_VERSION=%INSTALLER_VERSION:bleedingEdge=0.0.0%
+SET LAUNCHER_VERSION=%INSTALLER_VERSION:0.0.0%
SET ADVINST=C:\Program Files (x86)\Caphyon\Advanced Installer 14.7\bin\x86\
SET PATH=%PATH%;%ADVINST%;
@@ -20,5 +20,5 @@ MOVE Pharo windows\Pharo-win\Pharo
cd windows
REM advinst.exe /newproject $ADVINST_PROJECT -lang en -overwrite
-advinst.exe /execute "%ADVINST_PROJECT%" "%ADVINST_COMMAND_FILE%"
+"%ADVINST%AdvancedInstaller.com" /execute "%ADVINST_PROJECT%" "%ADVINST_COMMAND_FILE%"
MOVE pharo-launcher.msi ..\pharo-launcher-%VERSION%.msi

Add timeout on build + begin to fix install on windows