diff options
author | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-10-18 10:16:02 +0200 |
---|---|---|
committer | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-10-18 10:16:02 +0200 |
commit | 398e2d25c1ca8cea19d091246cbf785e95156bb4 (patch) | |
tree | 269b170c30c499f44cc759ca142ea1b56b17d9d2 /jjb/release-jjb-eel-sources | |
parent | ee1b0e554f724b4f6ea5f7e04c14ee18274e8dd6 (diff) |
Add source and binary release jobs for EE
Change-Id: I75103b1943f7a2778d4fb1a7e06383e9515566b4
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb/release-jjb-eel-sources')
-rw-r--r-- | jjb/release-jjb-eel-sources/include-release-jjb-eel-release-sources-rsync.sh | 36 | ||||
-rw-r--r-- | jjb/release-jjb-eel-sources/release-jjb-eel-sources.yaml | 40 |
2 files changed, 76 insertions, 0 deletions
diff --git a/jjb/release-jjb-eel-sources/include-release-jjb-eel-release-sources-rsync.sh b/jjb/release-jjb-eel-sources/include-release-jjb-eel-release-sources-rsync.sh new file mode 100644 index 00000000..9b40b5ac --- /dev/null +++ b/jjb/release-jjb-eel-sources/include-release-jjb-eel-release-sources-rsync.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +#set -x +set -e +#export RSYNCDST="jenkins-slave@10.30.72.8:/srv/download/AGL/release/${RELEASE_BRANCH}/${RELEASE_VERSION}/" +#export RSYNCSRC=$(pwd)/UPLOAD/ + +# construct upload folder + + +BRANCH=${RELEASE_BRANCH} +RELVER=${RELEASE_VERSION} + +rm -rf release-upload || true + +git clone -b ${RELEASE_BRANCH} https://gerrit.automotivelinux.org/gerrit/p/staging/release-upload.git +cd release-upload + +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 ) + +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 + ssh -o StrictHostKeyChecking=no jenkins-slave@10.30.72.8 "mkdir -p ${RSYNCDST}" + rsync -avr -e "ssh -o StrictHostKeyChecking=no" ${RSYNCSRC}/* ${RSYNCDST} +fi diff --git a/jjb/release-jjb-eel-sources/release-jjb-eel-sources.yaml b/jjb/release-jjb-eel-sources/release-jjb-eel-sources.yaml new file mode 100644 index 00000000..1951d399 --- /dev/null +++ b/jjb/release-jjb-eel-sources/release-jjb-eel-sources.yaml @@ -0,0 +1,40 @@ +--- +- project: + name: release-jjb-eel-sources + jobs: + - release-jjb-eel-sources + +- job-template: + name: 'release-jjb-eel-sources' + project-type: freestyle + concurrent: false + node: agl-test-slave + + parameters: + - string: + name: RELEASE_VERSION + default: 4.99.1 + description: "release version number for build" + - string: + name: RELEASE_BRANCH + default: eel + description: "release branch to build" + - string: + name: UPLOAD + default: yes_or_no + description: "Upload?" + + build-discarder: + days-to-keep: 30 + num-to-keep: 40 + artifact-days-to-keep: -1 + artifact-num-to-keep: 5 + + wrappers: + - agl-infra-wrappers: + build-timeout: '{build-timeout}' + + builders: + - shell: + !include-raw-escape: + - include-release-jjb-eel-release-sources-rsync.sh |