]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Third try for sysdyn setup pipeline
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 24 Sep 2018 08:52:40 +0000 (11:52 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 26 Sep 2018 07:54:18 +0000 (10:54 +0300)
gitlab #34

(cherry picked from commit 0509ec2c29f547e54951a26db2ca7b7cde8a0bda)

releng/JenkinsFiles/Jenkinsfile-sysdyn-setup
releng/inno-setup/sysdyn.iss

index a9569ae83da67ce924dcefaea2b0ddb90357778f..6273c329c222a62730f30398b44f2120e2cbdda3 100644 (file)
@@ -1,20 +1,34 @@
 pipeline {
     agent { label 'windows' }
     stages  {
-        stage ('Build installer') {
+        stage ('Build Sysdyn Without OpenModelica installer') {
             agent { label 'windows' }
             steps {
                 powershell '''
                     $ProgressPreference = "silentlyContinue"
-                    $branch = $Env:BRANCH
-                    wget "http://www.simantics.org/download/$branch/sysdyn/products/Simantics-Sysdyn-win32.win32.x86_64.zip" -UseBasicParsing
-                    Expand-Archive ./Simantics-Sysdyn-win32.win32.x86_64.zip -DestinationPath sysdyn
-                    iscc releng/inno-setup/sysdyn.iss
+                    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
                 '''
-                archiveArtifacts artifacts: 'output/*.exe', fingerprint: false
+                archiveArtifacts artifacts: 'releng/inno-setup/output/*.exe', fingerprint: false
             }
         }
-        stage ('Publish installer') {
+        stage ('Build Sysdyn with OpenModelica installer') {
+            agent { label 'windows' }
+            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
+                    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
index bba5a8fa9de4b3404855b1c7d76befc8f07eab7d..185e012f46b3bf9bb5c9d200ad3671b89bd4a2ca 100644 (file)
@@ -17,7 +17,7 @@ OutputDir=output
 Source: "sysdyn/*"; DestDir: "{app}"; Flags: recursesubdirs createallsubdirs
 
 [Icons]
-Name: "{group}\Simantics System Dynamics"; Filename: "{app}\Simantics Desktop.exe"
+Name: "{group}\Simantics System Dynamics"; Filename: "{app}\Simantics-Sysdyn.exe"
 
 [Messages]
 SelectDirBrowseLabel=To continue, click Next. If you would like to select a different folder, click Browse.%nThe target path may not contain space characters or be longer than 45 characters.
@@ -34,4 +34,4 @@ begin
       MsgBox('The target installation path may not contain space characters or be longer than 45 characters.', mbError, MB_OK);
     end;
   end;
-end;
\ No newline at end of file
+end;