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
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.
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;