aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2017-03-09 00:04:27 +0100
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2017-03-09 00:04:27 +0100
commit46ab1c539d3c07d23b5995b0e6d30191ac6913ad (patch)
tree1e99acf106694027765b01507702acbf7280d7b3
parent40ed9aab9ec797017a2764a7893c95a6b0608051 (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>
-rw-r--r--jjb/release-jjb-chinook-sources/include-release-jjb-chinook-release-sources-rsync.sh41
-rw-r--r--jjb/release-jjb-chinook-sources/release-jjb-chinook-sources.yaml29
2 files changed, 22 insertions, 48 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
diff --git a/jjb/release-jjb-chinook-sources/release-jjb-chinook-sources.yaml b/jjb/release-jjb-chinook-sources/release-jjb-chinook-sources.yaml
index 2e19c854..f9c5353c 100644
--- a/jjb/release-jjb-chinook-sources/release-jjb-chinook-sources.yaml
+++ b/jjb/release-jjb-chinook-sources/release-jjb-chinook-sources.yaml
@@ -11,18 +11,6 @@
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
description: "release version number for build"
@@ -48,20 +36,5 @@
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