diff options
author | Sam Davis | 2018-05-30 17:41:13 +0000 |
---|---|---|
committer | Sam Davis | 2018-06-22 20:34:34 +0000 |
commit | 136c590fe530919894d0f8a395d202fa602d1524 (patch) | |
tree | b76846336b47bb9e8c542664e6b073e0edb1d614 | |
parent | b1362b03969ca773ea2a3a44c5a6e31495c540c5 (diff) | |
download | org.eclipse.mylyn-R_3_23_3.tar.gz org.eclipse.mylyn-R_3_23_3.tar.xz org.eclipse.mylyn-R_3_23_3.zip |
use websevice to sign Mylyn update site jarsR_3_23_3e_4_7_m_3_23_x
The command line service has been removed. There is a Maven plugin but
it would require larger changes to our build process because it only
signs jars built in the same reactor, whereas we sign our update site at
the end of the build.
Change-Id: I4c0c75806441920c82e2ec4f8b53d6ee6ac72e1c
-rwxr-xr-x | org.eclipse.mylyn-site/pack-and-sign/sign-and-wait.sh | 49 |
1 files changed, 5 insertions, 44 deletions
diff --git a/org.eclipse.mylyn-site/pack-and-sign/sign-and-wait.sh b/org.eclipse.mylyn-site/pack-and-sign/sign-and-wait.sh index b1743a38..3bb17578 100755 --- a/org.eclipse.mylyn-site/pack-and-sign/sign-and-wait.sh +++ b/org.eclipse.mylyn-site/pack-and-sign/sign-and-wait.sh @@ -20,53 +20,14 @@ fi set -x SRC=$1 -DST=/home/data/httpd/download-staging.priv/$2 -OUT=$DST/output -LOG=/home/data/httpd/download-staging.priv/arch/signer.log - -# prepare - -rm -rf $DST -mkdir -p $DST -mkdir -p $OUT - -# create zip - -echo Creating archive for signing cd $SRC -/usr/bin/find -name "*$3*" | zip $DST/site.zip -@ -# sign +echo Begin Signing -/usr/bin/sign $DST/site.zip nomail $OUT - -# wait up to 30 minutes for signing to complete - -tail -f $LOG | grep -E \(Extracting\|Finished\) & - -I=0 -while [ $I -lt 120 ] && [ ! -e $OUT/site.zip ]; do - echo Waiting for $OUT/site.zip... $I / 120 - sleep 30 - let I=I+1 +for file in `/usr/bin/find -name "*$3*.jar"`; do + echo Signing $file + curl -o $file -F file=@$file http://build.eclipse.org:31338/sign done -PID=`jobs -l -p` -kill $PID - -if [ ! -e $OUT/site.zip ] -then - echo - echo Signing Failed: Timeout waiting for $OUT/site.zip - exit 1 -fi - -# unzip - -echo Unzipping signed files -/usr/bin/unzip -o -d $SRC $OUT/site.zip - -# cleanup - -rm $DST/site.zip +echo Completed Signing
\ No newline at end of file |