]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Install openmodelica on top of branded sysdyn product
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 21 Sep 2018 19:48:17 +0000 (22:48 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 21 Sep 2018 19:48:17 +0000 (22:48 +0300)
gitlab #33

releng/JenkinsFiles/Jenkinsfile-sysdyn-om
releng/JenkinsFiles/install-om.sh [new file with mode: 0755]

index 1a416f3677406b44d007fd2389318be7e7c448ca..720290ba87275018f68decbf1b6a58d2fae7a5fc 100644 (file)
@@ -4,37 +4,10 @@ pipeline {
         stage ('Build and possible publish product to web') {
             steps {
                 sh '''#!/bin/bash
-                    PKG=Simantics-Desktop-win32.win32.x86_64
+                    PKG=Simantics-Sysdyn-win32.win32.x86_64
                     TGT=Simantics-Sysdyn-OM-win32.win32.x86_64
 
-                    echo "Download current desktop product"
-                    wget -nv http://www.simantics.org/download/${BRANCH}/${PKG}.zip
-
-                    echo "Unzip Desktop product"
-                    unzip -q -d ${PKG} ${PKG}.zip
-
-                    echo "Install Sysdyn feature into unzipped product"
-                    /opt/eclipse/eclipse -noSplash \
-                        -application org.eclipse.equinox.p2.director \
-                        -repository https://www.simantics.org/download/${BRANCH}/sysdyn/p2.site/ \
-                        -installIU org.simantics.sysdyn.internal.p2.feature.group \
-                        -tag AddSysdyn \
-                        -destination ${PKG} \
-                        -profile DefaultProfile || exit -1
-
-                    echo "Install OpenModelica"
-                    /opt/eclipse/eclipse -noSplash \
-                        -application org.eclipse.equinox.p2.director \
-                        -repository https://www.simantics.org/download/master/openmodelica/p2.site/ \
-                        -installIU org.simantics.om.feature.group \
-                        -tag AddOpenModelica \
-                        -destination ${PKG} \
-                        -profile DefaultProfile || exit -1
-    
-                    echo "Re-package product"
-                    mv -v ${PKG} ${TGT}
-                    7z a -tzip ${TGT}.zip ${TGT} > /dev/null
-                    rm -rf ${PKG}.zip ${TGT}
+                    bash ./install-om.sh ${BRANCH} ${PKG} ${TGT}
     
                     if [ -n "${PUBLISH_PRODUCT}" ]; then
                         PRODUCT_PUBLISH_DIR=/var/www/http-www.simantics.org/download/${BRANCH}/sysdyn/products
diff --git a/releng/JenkinsFiles/install-om.sh b/releng/JenkinsFiles/install-om.sh
new file mode 100755 (executable)
index 0000000..9924661
--- /dev/null
@@ -0,0 +1,33 @@
+#!/bin/bash
+BRANCH=$1
+PKG=$2
+TGT=$3
+
+echo "Download sysdyn product"
+wget -nv http://www.simantics.org/download/${BRANCH}/sysdyn/products/${PKG}.zip
+
+echo "Unzip sysdyn product"
+unzip -q -d ${PKG} ${PKG}.zip
+
+#echo "Install Sysdyn feature into unzipped product"
+#/opt/eclipse/eclipse -noSplash \
+#    -application org.eclipse.equinox.p2.director \
+#    -repository https://www.simantics.org/download/${BRANCH}/sysdyn/p2.site/ \
+#    -installIU org.simantics.sysdyn.internal.p2.feature.group \
+#    -tag AddSysdyn \
+#    -destination ${PKG} \
+#    -profile DefaultProfile || exit -1
+
+echo "Install OpenModelica"
+/opt/eclipse/eclipse -noSplash \
+    -application org.eclipse.equinox.p2.director \
+    -repository https://www.simantics.org/download/master/openmodelica/p2.site/ \
+    -installIU org.simantics.om.feature.group \
+    -tag AddOpenModelica \
+    -destination ${PKG} \
+    -profile DefaultProfile || exit -1
+    
+echo "Re-package product"
+mv -v ${PKG} ${TGT}
+7z a -tzip ${TGT}.zip ${TGT} > /dev/null
+rm -rf ${PKG}.zip ${TGT}