Skip to content

Commit

Permalink
Bug 571669: disable notarization as part of main build
Browse files Browse the repository at this point in the history
Change-Id: Ic7d0c9a19a9c4594e7da20fda48fcfb00d9cb9ea
  • Loading branch information
jonahgraham committed May 5, 2021
1 parent 3262560 commit d5bb3b0
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions releng/org.eclipse.epp.config/tools/upload-to-staging.sh
Expand Up @@ -49,31 +49,31 @@ echo "CI URL: ${BUILD_URL}" >> ci-info.txt
# -----------------------------
# Notarize macos files

cd ${WORKSPACE}
for i in $(find ${WORKSPACE}/${GIT_REPOSITORY}/archive -name '*.dmg-tonotarize')
do
DMG_FILE=${i/-tonotarize/}
LOG=$(basename ${i}).log
echo "Starting ${DMG_FILE}" |& tee ${WORKSPACE}/${LOG}
${WORKSPACE}/${GIT_REPOSITORY}/releng/org.eclipse.epp.config/tools/macosx-notarization-single.sh ${DMG_FILE} |& tee --append ${LOG} &
sleep 18s # start jobs at a small interval from each other
done

jobs -p
wait < <(jobs -p)


if [[ -n `find ${WORKSPACE}/${GIT_REPOSITORY}/archive -name '*.dmg-tonotarize'` ]]; then
echo "Failed to notarize the following"
find ${WORKSPACE}/${GIT_REPOSITORY}/archive -name '*.dmg-tonotarize'
echo "The following files were found to not have been notarized" > tonotarize-list.log
find ${WORKSPACE}/${GIT_REPOSITORY}/archive -name '*.dmg-tonotarize' >> tonotarize-list.log
# 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
# cd ${WORKSPACE}
# for i in $(find ${WORKSPACE}/${GIT_REPOSITORY}/archive -name '*.dmg-tonotarize')
# do
# DMG_FILE=${i/-tonotarize/}
# LOG=$(basename ${i}).log
# echo "Starting ${DMG_FILE}" |& tee ${WORKSPACE}/${LOG}
# ${WORKSPACE}/${GIT_REPOSITORY}/releng/org.eclipse.epp.config/tools/macosx-notarization-single.sh ${DMG_FILE} |& tee --append ${LOG} &
# sleep 18s # start jobs at a small interval from each other
# done

# jobs -p
# wait < <(jobs -p)


# if [[ -n `find ${WORKSPACE}/${GIT_REPOSITORY}/archive -name '*.dmg-tonotarize'` ]]; then
# echo "Failed to notarize the following"
# find ${WORKSPACE}/${GIT_REPOSITORY}/archive -name '*.dmg-tonotarize'
# echo "The following files were found to not have been notarized" > tonotarize-list.log
# find ${WORKSPACE}/${GIT_REPOSITORY}/archive -name '*.dmg-tonotarize' >> tonotarize-list.log
# # 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 d5bb3b0

Please sign in to comment.