Loading
Notarize dmg files on the download server that were previously promoted with <a href="https://ci.eclipse.org/packaging/job/promote-a-build/">https://ci.eclipse.org/packaging/job/promote-a-build/</a> or just the ones currently in <a href="https://download.eclipse.org/justj/?file=technology/epp/staging">https://download.eclipse.org/technology/epp/staging/</a>.
Loading...
10
4
Testing...
${
}
RELEASES_DIR
/home/data/httpd/download.eclipse.org/technology/epp/staging
Directory to search for *.dmg-tonotarize files to notarize (do NOT use a final slash!)
1
5
2
https://github.com/eclipse-packaging/packages.git
origin
+refs/heads/*:refs/remotes/origin/*
*/master
master
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) # upload notarized dmg files to their respective folders pushd temp for i in $( find * -name '*.dmg' ) do ${SCP} ${i}* ${SSHUSER}:${RELEASES_DIR} # Save the signed, but unnotarized files. See Bug 575677 ${SSH} mv ${RELEASES_DIR}/${i}-tonotarize ${RELEASES_DIR}/${i}-signed ${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