Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSravan Kumar Lakkimsetti2019-12-06 11:25:36 +0000
committerSravan Kumar Lakkimsetti2019-12-06 11:25:36 +0000
commitba10d37510d6820e18cb67390d2ea6a87545b84b (patch)
tree1717595c4b69b5e943c1918f44c8f87fbe1917b7 /cje-production
parentfb3f4566157713e55db097ea15f668dd1a974533 (diff)
downloadeclipse.platform.releng.aggregator-ba10d37510d6820e18cb67390d2ea6a87545b84b.tar.gz
eclipse.platform.releng.aggregator-ba10d37510d6820e18cb67390d2ea6a87545b84b.tar.xz
eclipse.platform.releng.aggregator-ba10d37510d6820e18cb67390d2ea6a87545b84b.zip
Bug 553757 - Migrate I-builds to new infra
Change-Id: Iaa5d6cf5f1f05d708c8fdecfb0c4f8c82deef804 Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
Diffstat (limited to 'cje-production')
-rwxr-xr-xcje-production/mbscripts/mb300_gatherEclipseParts.sh2
-rwxr-xr-xcje-production/mbscripts/mb310_gatherEquinoxParts.sh1
-rwxr-xr-xcje-production/scripts/common-functions.shsource33
3 files changed, 36 insertions, 0 deletions
diff --git a/cje-production/mbscripts/mb300_gatherEclipseParts.sh b/cje-production/mbscripts/mb300_gatherEclipseParts.sh
index e13ec5e08..5ce877531 100755
--- a/cje-production/mbscripts/mb300_gatherEclipseParts.sh
+++ b/cje-production/mbscripts/mb300_gatherEclipseParts.sh
@@ -56,6 +56,7 @@ if [ -z $PATCH_BUILD ]; then
cp org.eclipse.sdk.ide-macosx.cocoa.x86_64.dmg $CJE_ROOT/$DROP_DIR/$BUILD_ID/eclipse-SDK-$BUILD_ID-macosx-cocoa-x86_64.dmg
cp org.eclipse.sdk.ide-win32.win32.x86_64.zip $CJE_ROOT/$DROP_DIR/$BUILD_ID/eclipse-SDK-$BUILD_ID-win32-x86_64.zip
popd
+ fn-notarize-macbuild "$CJE_ROOT/$DROP_DIR/$BUILD_ID" eclipse-SDK-${BUILD_ID}-macosx-cocoa-x86_64.dmg
fi
# gather platform
@@ -68,6 +69,7 @@ if [ -z $PATCH_BUILD ]; then
cp org.eclipse.platform.ide-macosx.cocoa.x86_64.dmg $CJE_ROOT/$DROP_DIR/$BUILD_ID/eclipse-platform-$BUILD_ID-macosx-cocoa-x86_64.dmg
cp org.eclipse.platform.ide-win32.win32.x86_64.zip $CJE_ROOT/$DROP_DIR/$BUILD_ID/eclipse-platform-$BUILD_ID-win32-x86_64.zip
popd
+ fn-notarize-macbuild "$CJE_ROOT/$DROP_DIR/$BUILD_ID" eclipse-platform-${BUILD_ID}-macosx-cocoa-x86_64.dmg
fi
# gather platform sources
diff --git a/cje-production/mbscripts/mb310_gatherEquinoxParts.sh b/cje-production/mbscripts/mb310_gatherEquinoxParts.sh
index 960f98734..1c02c303c 100755
--- a/cje-production/mbscripts/mb310_gatherEquinoxParts.sh
+++ b/cje-production/mbscripts/mb310_gatherEquinoxParts.sh
@@ -33,6 +33,7 @@ if [ -d $REPO_DIR ]; then
cp org.eclipse.rt.osgistarterkit.product-macosx.cocoa.x86_64.dmg $CJE_ROOT/$EQUINOX_DROP_DIR/$BUILD_ID/EclipseRT-OSGi-StarterKit-$BUILD_ID-macosx-cocoa-x86_64.dmg
cp org.eclipse.rt.osgistarterkit.product-win32.win32.x86_64.zip $CJE_ROOT/$EQUINOX_DROP_DIR/$BUILD_ID/EclipseRT-OSGi-StarterKit-$BUILD_ID-win32-win32-x86_64.zip
popd
+ fn-notarize-macbuild "$CJE_ROOT/$EQUINOX_DROP_DIR/$BUILD_ID" EclipseRT-OSGi-StarterKit-$BUILD_ID-macosx-cocoa-x86_64.dmg
fi
# gather Equinox SDK
diff --git a/cje-production/scripts/common-functions.shsource b/cje-production/scripts/common-functions.shsource
index 36cfc8bd0..c28d71682 100755
--- a/cje-production/scripts/common-functions.shsource
+++ b/cje-production/scripts/common-functions.shsource
@@ -43,3 +43,36 @@ fn-run-command ()
exit $returnCode
fi
}
+
+fn-notarize-macbuild ()
+{
+ set -x
+ BUILD_DIR="$1"; shift
+ DMG="$1"; shift
+
+ pushd $BUILD_DIR
+
+ PRIMARY_BUNDLE_ID="$(echo ${DMG} | sed 's/-macosx-cocoa-x86_64.dmg//g')"
+
+ RESPONSE=$(curl -s -X POST -F file=@${DMG} -F 'options={"primaryBundleId": "'${PRIMARY_BUNDLE_ID}'", "staple": true};type=application/json' http://172.30.206.146:8383/macos-notarization-service/notarize)
+
+ UUID=$(echo $RESPONSE | grep -Po '"uuid"\s*:\s*"\K[^"]+')
+ STATUS=$(echo $RESPONSE | grep -Po '"status"\s*:\s*"\K[^"]+')
+
+ while [[ ${STATUS} == 'IN_PROGRESS' ]]; do
+ sleep 1m
+ RESPONSE=$(curl -s http://172.30.206.146:8383/macos-notarization-service/${UUID}/status)
+ STATUS=$(echo $RESPONSE | grep -Po '"status"\s*:\s*"\K[^"]+')
+ done
+
+ if [[ ${STATUS} != 'COMPLETE' ]]; then
+ echo "Notarization failed: ${RESPONSE}"
+ exit 1
+ fi
+
+ rm "${DMG}"
+
+ curl -JO http://172.30.206.146:8383/macos-notarization-service/${UUID}/download
+ popd
+ set +x
+}

Back to the top