Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2018-08-27 09:32:50 -0400
committerVincent Lorenzo2018-08-27 09:33:09 -0400
commit4a6cedd5803993d0c6bad7e30ab3c267a8f4f071 (patch)
tree229eb9f163b40eb38722fe1c9da5d24a6d27edce
parent286fb90eefe69a9e0e823769fdc65c1c0467926d (diff)
downloadorg.eclipse.papyrus-collaborativemodeling-4a6cedd5803993d0c6bad7e30ab3c267a8f4f071.tar.gz
org.eclipse.papyrus-collaborativemodeling-4a6cedd5803993d0c6bad7e30ab3c267a8f4f071.tar.xz
org.eclipse.papyrus-collaborativemodeling-4a6cedd5803993d0c6bad7e30ab3c267a8f4f071.zip
add build-after script to publish update site
Change-Id: I0fe556bd11fb71c078089022f34a86361a84950c Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
-rwxr-xr-xplugins/cdo/releng/toolkit/server/build-after.sh59
1 files changed, 59 insertions, 0 deletions
diff --git a/plugins/cdo/releng/toolkit/server/build-after.sh b/plugins/cdo/releng/toolkit/server/build-after.sh
new file mode 100755
index 0000000..b5acdca
--- /dev/null
+++ b/plugins/cdo/releng/toolkit/server/build-after.sh
@@ -0,0 +1,59 @@
+#--------------------------------------------------------------------------------
+# Copyright (c) 2012-2014, 2018 CEA LIST.
+#
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Nicolas Bros (Mia-Software)
+# Camille Letavernier (CEA LIST)
+# Vincent LORENZO (CEA LIST) - Adapter for Papyrus CDO
+#--------------------------------------------------------------------------------
+
+########## publishing ##########
+
+##
+## Known variables:
+## BUILD_ID=2014-10-01_05-16-17
+##
+## For stable builds:
+## BUILD_ALIAS=M4
+##
+
+p2UpdateSiteDir=${WORKSPACE}/source/releng/main/site/target/repository
+updateSite=${WORKSPACE}/repository
+
+if [ -n "$BUILD_ALIAS" ]; then
+ buildType=S
+else
+ buildType=N
+fi
+
+#COMPACT_BUILD_ID="${BUILD_ID//[-_]}"
+#COMPACT_BUILD_ID="${COMPACT_BUILD_ID:0:12}"
+#COMPACT_BUILD_ID="$(date +%Y%m%d%H%M)"
+COMPACT_BUILD_ID="$BUILD_TIMESTAMP"
+FULL_BUILD_ID=${buildType}${COMPACT_BUILD_ID}
+
+if [ -n "$BUILD_ALIAS" ]; then
+ updateZipName=Papyrus-CDO-${BUILD_ALIAS}.zip
+else
+ updateZipName=Papyrus-CDO-${FULL_BUILD_ID}.zip
+fi
+zipName="Papyrus-CDO.zip"
+
+rm -rf tmp
+mkdir -p "tmp/$FULL_BUILD_ID"
+
+rm -rf $updateSite
+mv $p2UpdateSiteDir $updateSite
+
+# create the update site zip
+(cd $updateSite && zip -r $updateZipName *)
+mv $updateSite/$updateZipName "tmp/$FULL_BUILD_ID"
+
+(cd tmp && zip -r $zipName *)
+mv tmp/$zipName .

Back to the top