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