]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Innosetup pipeline build first try
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 24 Sep 2018 06:52:26 +0000 (09:52 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 24 Sep 2018 06:52:26 +0000 (09:52 +0300)
gitlab #34

releng/JenkinsFiles/Jenkinsfile-sysdyn-setup [new file with mode: 0644]

diff --git a/releng/JenkinsFiles/Jenkinsfile-sysdyn-setup b/releng/JenkinsFiles/Jenkinsfile-sysdyn-setup
new file mode 100644 (file)
index 0000000..76ef248
--- /dev/null
@@ -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}
+                '''
+            }
+        }
+    }
+}