diff options
author | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-03-09 00:04:27 +0100 |
---|---|---|
committer | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-03-09 00:04:27 +0100 |
commit | 46ab1c539d3c07d23b5995b0e6d30191ac6913ad (patch) | |
tree | 1e99acf106694027765b01507702acbf7280d7b3 /jjb/release-jjb-chinook-sources/include-release-jjb-chinook-release-sources-rsync.sh | |
parent | 40ed9aab9ec797017a2764a7893c95a6b0608051 (diff) |
Pull signed and release-ready source tarballs from git and upload
Change-Id: I79097ed1296b42ace14f1f7f5b9a626dd8ef8bd3
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb/release-jjb-chinook-sources/include-release-jjb-chinook-release-sources-rsync.sh')
-rw-r--r-- | jjb/release-jjb-chinook-sources/include-release-jjb-chinook-release-sources-rsync.sh | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/jjb/release-jjb-chinook-sources/include-release-jjb-chinook-release-sources-rsync.sh b/jjb/release-jjb-chinook-sources/include-release-jjb-chinook-release-sources-rsync.sh index 9f763309..cf08038d 100644 --- a/jjb/release-jjb-chinook-sources/include-release-jjb-chinook-release-sources-rsync.sh +++ b/jjb/release-jjb-chinook-sources/include-release-jjb-chinook-release-sources-rsync.sh @@ -2,33 +2,34 @@ #set -x set -e -echo "#######################################" -echo "#######################################" -ls -alh -echo "#######################################" -echo "#######################################" -tree -L 2 -echo "#######################################" -echo "#######################################" - #export RSYNCDST="jenkins-slave@10.30.72.8:/srv/download/AGL/release/${RELEASE_BRANCH}/${RELEASE_VERSION}/" #export RSYNCSRC=$(pwd)/UPLOAD/ # construct upload folder -mv UPLOAD UPLOAD2 || true -rm -rf UPLOAD2 || true -mkdir -p UPLOAD/${MACHINE} -export DEST=$(pwd)/UPLOAD/${MACHINE} -tree $DEST -ls -alhR $DEST +BRANCH=${RELEASE_BRANCH} +RELVER=${RELEASE_VERSION} +rm -rf release-upload || true -exit 0 +git clone -b ${RELEASE_BRANCH} ssh://jsmoeller@gerrit.automotivelinux.org:29418/staging/release-upload +cd release-upload -if test x"yes" = x"$UPLOAD" ; then - rsync -avr -e "ssh -o StrictHostKeyChecking=no" $RSYNCSRC $RSYNCDST -fi +gpg --keyserver pgp.mit.edu --recv D6DD2170 + +ls | grep -q agl-${RELEASE_BRANCH}-${RELEASE_VERSION}.tar.bz2 + +( gpg --verify agl-${RELEASE_BRANCH}-${RELEASE_VERSION}.tar.bz2.sig agl-${RELEASE_BRANCH}-${RELEASE_VERSION}.tar.bz2 2>&1 | grep -e "Good signature.*Jan-Simon.*Moeller.*AGL.*Release" -q && echo "gpg key verification succeeded" ) || ( echo "gpg key verification failed" && exit 1 ) -exit 0
\ No newline at end of file +rm -rf ../UPLOAD || true +mkdir -p ../UPLOAD/ + +cp -ar agl-${RELEASE_BRANCH}-${RELEASE_VERSION}.* ../UPLOAD/ + +export RSYNCSRC=$(pwd)/../UPLOAD +export RSYNCDST="jenkins-slave@10.30.72.8:/srv/download/AGL/release/${RELEASE_BRANCH}/" + +if test x"yes" = x"${UPLOAD}" ; then + rsync -avr -e "ssh -o StrictHostKeyChecking=no" ${RSYNCSRC}/* ${RSYNCDST} +fi |