diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2020-03-05 23:52:48 +0100 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2020-03-05 23:54:17 +0100 |
commit | fe2c65284b3679c520b0198e98c15334da13182b (patch) | |
tree | 5649dc7f6ce95e3fb0d3f5b174534f7664730c52 /jjb/release-jjb-icefish-sources | |
parent | fcd1ea2c2baff977470da8ca53db560c8df21073 (diff) |
Streamline and simplify release jobs
Extend automation.
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: I959da9e8048dcf8fe87bf6ae23d7350947ec5b40
Diffstat (limited to 'jjb/release-jjb-icefish-sources')
-rw-r--r-- | jjb/release-jjb-icefish-sources/include-release-jjb-release-sources-rsync.sh | 51 | ||||
-rw-r--r-- | jjb/release-jjb-icefish-sources/release-jjb-sources.yaml | 6 |
2 files changed, 42 insertions, 15 deletions
diff --git a/jjb/release-jjb-icefish-sources/include-release-jjb-release-sources-rsync.sh b/jjb/release-jjb-icefish-sources/include-release-jjb-release-sources-rsync.sh index e458a17d..ceac3acd 100644 --- a/jjb/release-jjb-icefish-sources/include-release-jjb-release-sources-rsync.sh +++ b/jjb/release-jjb-icefish-sources/include-release-jjb-release-sources-rsync.sh @@ -2,38 +2,61 @@ #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} +REVISION=${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 +rm -rf AGLRELEASE || true -gpg --keyserver pool.sks-keyservers.net --recv D6DD2170 +mkdir agl-${BRANCH}-${REVISION} +pushd agl-${BRANCH}-${REVISION} -ls | grep -q agl-${RELEASE_BRANCH}-${RELEASE_VERSION}.tar.bz2 +repo init --reference=/opt/AGL/preclone -q -b ${GERRIT_BRANCH} -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo -m ${BRANCH}_${REVISION}.xml -( 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 ) +repo sync --force-sync -rm -rf ../UPLOAD || true -mkdir -p ../UPLOAD/ +repo manifest -r > ../${BRANCH}_${REVISION}.tar.xml -cp -ar agl-${RELEASE_BRANCH}-${RELEASE_VERSION}.* ../UPLOAD/ +rm -rf .repo +find . -name *.git | xargs rm -rf -export RSYNCSRC=$(pwd)/../UPLOAD +ln -sf meta-agl/README-AGL.md + +cat <<EOF > aglsetup.sh +#!/bin/bash + +source ./meta-agl/scripts/aglsetup.sh \$@ +EOF + +chmod a+x aglsetup.sh + +popd + +tar -cjvf agl-${BRANCH}-${REVISION}.tar.bz2 agl-${BRANCH}-${REVISION} + +md5sum agl-${BRANCH}-${REVISION}.tar.bz2 > agl-${BRANCH}-${REVISION}.tar.bz2.md5sum +sha256sum agl-${BRANCH}-${REVISION}.tar.bz2 > agl-${BRANCH}-${REVISION}.tar.bz2.sha256sum + + + +rm -rf UPLOAD || true +mkdir -p UPLOAD/ + +cp -ar agl-${RELEASE_BRANCH}-${RELEASE_VERSION}.* UPLOAD/ + +export RSYNCSRC=$(pwd)/UPLOAD export RSYNCDST="/srv/download/AGL/release/${RELEASE_BRANCH}/" +ls -alh UPLOAD/ + if test x"yes" = x"${UPLOAD}" ; then set +x ssh -o StrictHostKeyChecking=no jenkins-slave@10.30.72.8 "mkdir -p ${RSYNCDST}" rsync -avr -e "ssh -o StrictHostKeyChecking=no" ${RSYNCSRC}/* jenkins-slave@10.30.72.8:${RSYNCDST} ssh -o StrictHostKeyChecking=no jenkins-slave@10.30.72.8 "rm -rf ${RSYNCDST}/latest" ssh -o StrictHostKeyChecking=no jenkins-slave@10.30.72.8 "ln -sf ${RELEASE_VERSION} ${RSYNCDST}/latest" -fi
\ No newline at end of file +fi diff --git a/jjb/release-jjb-icefish-sources/release-jjb-sources.yaml b/jjb/release-jjb-icefish-sources/release-jjb-sources.yaml index d0ee0879..86328176 100644 --- a/jjb/release-jjb-icefish-sources/release-jjb-sources.yaml +++ b/jjb/release-jjb-icefish-sources/release-jjb-sources.yaml @@ -12,8 +12,12 @@ parameters: - string: + name: GERRIT_BRANCH + default: icefish + description: "release version number for build" + - string: name: RELEASE_VERSION - default: 8.99.1 + default: 9.0.0 description: "release version number for build" - string: name: RELEASE_BRANCH |