Skip to content

Commit

Permalink
Run the notarization with CWD of $WORKSPACE
Browse files Browse the repository at this point in the history
Change-Id: Ifa000ee8198b75ad4991aa921b16c8222b8fca56
  • Loading branch information
jonahgraham committed Feb 25, 2021
1 parent 6382781 commit 0c65a88
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions releng/org.eclipse.epp.config/tools/upload-to-staging.sh
Expand Up @@ -49,7 +49,8 @@ echo "CI URL: ${BUILD_URL}" >> ci-info.txt
# -----------------------------
# Notarize macos files

for i in `find * -name '*.dmg-tonotarize'`
cd ${WORKSPACE}
for i in $(find ${WORKSPACE}/${GIT_REPOSITORY}/archive -name '*.dmg-tonotarize')
do
DMG_FILE=${i/-tonotarize/}
LOG=$(basename ${i}).log
Expand All @@ -62,14 +63,15 @@ jobs -p
wait < <(jobs -p)


if [[ -n `find * -name '*.dmg-tonotarize'` ]]; then
if [[ -n `find ${WORKSPACE}/${GIT_REPOSITORY}/archive -name '*.dmg-tonotarize'` ]]; then
echo "Failed to notarize the following"
find * -name '*.dmg-tonotarize'
find ${WORKSPACE}/${GIT_REPOSITORY}/archive -name '*.dmg-tonotarize'
# unstable - we don't want to fail the build for failed notarize because
# the notarization is just too flaky and we can renotarize any missed
# files later
EXITCODE=124
fi
cd ${WORKSPACE}/${GIT_REPOSITORY}/archive


# ----------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 0c65a88

Please sign in to comment.