Regenerate P2 repository metadata after signing
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Sat, 22 Feb 2020 22:51:04 +0000 (00:51 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Sat, 22 Feb 2020 22:51:04 +0000 (00:51 +0200)
Otherwise te checksums in artifacts.xml will be invalid builds are doomed.

gitlab #468

Change-Id: I4eddd4d0a9ef19e37bfc9a26a5e5c94c486e0bda

releng/org.simantics.sdk.build.p2.site/publish.sh [new file with mode: 0755]

diff --git a/releng/org.simantics.sdk.build.p2.site/publish.sh b/releng/org.simantics.sdk.build.p2.site/publish.sh
new file mode 100755 (executable)
index 0000000..86acc9d
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+if [ $# -lt 2 ]; then
+       echo "usage: $0 <eclipse-executable> <repository-directory-to-generate-p2-metadata-for>"
+       exit 1
+fi
+
+ECLIPSE=$1
+REPO=$2
+
+rm ${REPO}/{artifacts,content}.jar
+
+"${ECLIPSE}" -noupdate -nosplash -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -metadataRepository file:/${REPO} -artifactRepository file:/${REPO} -source ${REPO} -compress -publishArtifacts