From: Tuukka Lehtonen Date: Mon, 24 Sep 2018 06:52:26 +0000 (+0300) Subject: Innosetup pipeline build first try X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=4955f1c3f998437d31d45d3dc3427b6e5c6f7c8b;p=simantics%2Fsysdyn.git Innosetup pipeline build first try gitlab #34 --- diff --git a/releng/JenkinsFiles/Jenkinsfile-sysdyn-setup b/releng/JenkinsFiles/Jenkinsfile-sysdyn-setup new file mode 100644 index 00000000..76ef248d --- /dev/null +++ b/releng/JenkinsFiles/Jenkinsfile-sysdyn-setup @@ -0,0 +1,27 @@ +pipeline { + agent { label 'windows' } + stages { + stage ('Build installer') { + agent { label 'windows' } + steps { + powershell ''' + wget http://www.simantics.org/download/$env:BRANCH/sysdyn/products/Simantics-Sysdyn-win32.win32.x86_64.zip + Expand-Archive ./Simantics-Sysdyn-win32.win32.x86_64.zip -DestinationPath sysdyn + iscc releng/inno-setup/sysdyn.iss + ''' + archiveArtifacts artifacts: 'output/*.exe', fingerprint: false + } + } + stage ('Publish installer') { + 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} + ''' + } + } + } +}