Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2018-05-30 13:41:13 -0400
committerSam Davis2018-06-22 16:34:34 -0400
commit136c590fe530919894d0f8a395d202fa602d1524 (patch)
treeb76846336b47bb9e8c542664e6b073e0edb1d614
parentb1362b03969ca773ea2a3a44c5a6e31495c540c5 (diff)
downloadorg.eclipse.mylyn-e_4_7_m_3_23_x.tar.gz
org.eclipse.mylyn-e_4_7_m_3_23_x.tar.xz
org.eclipse.mylyn-e_4_7_m_3_23_x.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-xorg.eclipse.mylyn-site/pack-and-sign/sign-and-wait.sh49
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 b1743a3..3bb1757 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

Back to the top