steps {
powershell '''
$ProgressPreference = "silentlyContinue"
+ rm -Recurse releng/inno-setup/sysdyn releng/inno-setup/output
wget "http://www.simantics.org/download/${Env:BRANCH}/sysdyn/products/Simantics-Sysdyn-win32.win32.x86_64.zip" -OutFile sysdyn.zip
Expand-Archive ./sysdyn.zip -DestinationPath releng/inno-setup/sysdyn
- robocopy /MIR C:/jenkins/jre8/win32.x86_64 releng/inno-setup/sysdyn/jre
- iscc releng/inno-setup/sysdyn.iss
+ robocopy /MIR /NFL /NDL /NP C:/jenkins/jre8/win32.x86_64 releng/inno-setup/sysdyn/jre
+ iscc /Q releng/inno-setup/sysdyn.iss
'''
archiveArtifacts artifacts: 'releng/inno-setup/output/*.exe', fingerprint: false
}
steps {
powershell '''
$ProgressPreference = "silentlyContinue"
- wget "http://www.simantics.org/download/${Env:BRANCH}/sysdyn/products/Simantics-Sysdyn-OM-win32.win32.x86_64.zip" -OutFile sysdyn.zip
- Expand-Archive ./sysdyn.zip -DestinationPath releng/inno-setup/sysdyn
- robocopy /MIR C:/jenkins/jre8/win32.x86_64 releng/inno-setup/sysdyn/jre
- iscc releng/inno-setup/sysdyn.iss
+ rm -Recurse releng/inno-setup/sysdyn
+ rm -Recurse releng/inno-setup/output
+ wget "http://www.simantics.org/download/${Env:BRANCH}/sysdyn/products/Simantics-Sysdyn-OM-win32.win32.x86_64.zip" -OutFile sysdyn-om.zip
+ Expand-Archive ./sysdyn-om.zip -DestinationPath releng/inno-setup/sysdyn
+ robocopy /MIR /NFL /NDL /NP C:/jenkins/jre8/win32.x86_64 releng/inno-setup/sysdyn/jre
+ iscc /Q releng/inno-setup/sysdyn.iss
move releng/inno-setup/output/Sysdyn-1.35.0.exe releng/inno-setup/output/Sysdyn-OM-1.35.0.exe
'''
archiveArtifacts artifacts: 'releng/inno-setup/output/*.exe', fingerprint: false
}
}
- stage ('Publish installers') {
- agent { label 'master' }
- steps {
- sh '''#!/bin/bash
- PRODUCT_PUBLISH_DIR=/var/www/http-www.simantics.org/download/${BRANCH}/sysdyn/products
- echo "Publishing installers at: ${PRODUCT_PUBLISH_DIR}"
- mkdir -p ${PRODUCT_PUBLISH_DIR}
- #rsync --stats --verbose ${WORKSPACE}/*.exe ${PRODUCT_PUBLISH_DIR}
- '''
- }
- }
}
}