From 5569079467b28332318b9f99782c3efb486b3bcb Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Mon, 24 Sep 2018 09:52:26 +0300 Subject: [PATCH] Innosetup pipeline build first try gitlab #34 (cherry picked from commit 4955f1c3f998437d31d45d3dc3427b6e5c6f7c8b) --- releng/JenkinsFiles/Jenkinsfile-sysdyn-setup | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 releng/JenkinsFiles/Jenkinsfile-sysdyn-setup 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} + ''' + } + } + } +} -- 2.47.1