--- /dev/null
+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}
+ '''
+ }
+ }
+ }
+}