From 95f5fd7a992bc56e868da66d2b0f667356539749 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Sun, 23 Feb 2020 00:51:04 +0200 Subject: [PATCH] Regenerate P2 repository metadata after signing 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 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 releng/org.simantics.sdk.build.p2.site/publish.sh 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 index 000000000..86acc9d90 --- /dev/null +++ b/releng/org.simantics.sdk.build.p2.site/publish.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +if [ $# -lt 2 ]; then + echo "usage: $0 " + 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 -- 2.47.1