Loading
Test for <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=571669">Bug 571669</a>. See Comment 22 and 32.
Loading...
10
4
Testing...
${
}
RELEASES_DIR
/home/data/httpd/download.eclipse.org/technology/epp/staging-bug571669
Directory to search for *.dmg-tonotarize files to notarize (do NOT use a final slash!)
1
5
2
git://git.eclipse.org/gitroot/epp/org.eclipse.epp.packages.git
origin
+refs/heads/*:refs/remotes/origin/*
*/master
bug571669
org.eclipse.epp.packages
JENKINS_URL
TOKEN_NAME
Jenkins please retry a build
.*\[skip\W+ci\].*
H/5 * * * *
420
#!/bin/bash set -u # run with unset flag error so that missing parameters cause build failure set -e # error out on any failed commands set -x # echo all commands used for debugging purposes export PS4='+$$+ ' # add PID to output so that parallel bash process output is easier to follow SSHUSER="genie.packaging@projects-storage.eclipse.org" SSH="ssh ${SSHUSER}" SCP="scp" #RELEASES_DIR="/home/data/httpd/download.eclipse.org/technology/epp/downloads/release" # download dmg-tonotarize files mkdir temp pushd temp for path in $( ${SSH} find ${RELEASES_DIR} -maxdepth 1 -name '*.dmg-tonotarize' ) do ${SCP} ${SSHUSER}:${path} . done popd # notarize dmg-tonotarize files for i in $(find ${WORKSPACE} -name '*.dmg-tonotarize') do DMG_FILE=${i/-tonotarize/} LOG=$(basename ${i}).log echo "Starting ${DMG_FILE}" >> ${LOG} ${WORKSPACE}/org.eclipse.epp.packages/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) # The normal job would then copy the notarized dmgs back to download.eclipse.org, for this test # job that is commented out. # upload notarized dmg files to their respective folders # pushd temp # for i in $( find * -name '*.dmg' ) # do # ${SCP} ${i}* ${SSHUSER}:${RELEASES_DIR} # ${SSH} rm ${RELEASES_DIR}/${i}-tonotarize # ${SSH} rm ${RELEASES_DIR}/${i}-tonotarize'*' # done # popd if [[ -n `find ${WORKSPACE} -name '*.dmg-tonotarize'` ]]; then echo "Failed to notarize the following" find ${WORKSPACE} -name '*.dmg-tonotarize' exit 1 fi
*.log
jonah@kichwacoders.com