Pull signed and release-ready source tarballs from git and upload 89/8689/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Wed, 8 Mar 2017 23:04:27 +0000 (00:04 +0100)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Wed, 8 Mar 2017 23:04:27 +0000 (00:04 +0100)
Change-Id: I79097ed1296b42ace14f1f7f5b9a626dd8ef8bd3
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/release-jjb-chinook-sources/include-release-jjb-chinook-release-sources-rsync.sh
jjb/release-jjb-chinook-sources/release-jjb-chinook-sources.yaml

index 9f76330..cf08038 100644 (file)
@@ -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
index 2e19c85..f9c5353 100644 (file)
     node: agl-test-slave
 
     parameters:
-      - string:
-          name: GERRIT_PROJECT
-          default: AGL/AGL-repo
-          description: "Project to build"
-      - string:
-          name: GERRIT_BRANCH
-          default: chinook
-          description: "branch to build"
-      - string:
-          name: GERRIT_REFSPEC
-          default: refs/tags/3.0.2
-          description: "refspec to build"
       - string:
           name: RELEASE_VERSION
           default: 3.0.2
     builders:
       - shell:
             !include-raw-escape:
-                - ../common/include-agl-header.sh
-                - ../common/include-agl-repo.sh
-                - ../common/include-agl-select.sh
-#                - ../common/include-agl-source-aglsetup.sh
-#                - ../common/include-agl-auto-conf.sh
-#                - ../common/include-agl-limit-parallelism.sh
-#                - ../common/include-agl-cat-auto-conf.sh
-#                - ../common/include-agl-local-conf-archiver.sh
-#                - ../common/include-agl-local-conf-isafw.sh
-#                - ../common/include-agl-local-conf-vmdk.sh
-#                - ../common/include-agl-bitbake-image.sh
-#                - ../common/include-agl-bitbake-sdk.sh
-#                - ../common/include-agl-test-nbd-short.sh
-#      - shell:
-#            !include-raw-escape:
-#                 - include-release-jjb-chinook-release-sources-rsync.sh
+                 - include-release-jjb-chinook-release-sources-rsync.sh