From 3c9a45b3032b66aaba75e5192287af9414e483c8 Mon Sep 17 00:00:00 2001 From: Jan-Simon Moeller Date: Wed, 22 May 2024 20:54:08 +0200 Subject: Rework for new image names and drop older releases. Signed-off-by: Jan-Simon Moeller Change-Id: I0323fd9053ed3679772715a0080a1990209a563a --- .../include-release-jjb-release-sources-rsync.sh | 67 ---------------------- 1 file changed, 67 deletions(-) delete mode 100644 jjb/release-jjb-jellyfish-sources/include-release-jjb-release-sources-rsync.sh (limited to 'jjb/release-jjb-jellyfish-sources/include-release-jjb-release-sources-rsync.sh') diff --git a/jjb/release-jjb-jellyfish-sources/include-release-jjb-release-sources-rsync.sh b/jjb/release-jjb-jellyfish-sources/include-release-jjb-release-sources-rsync.sh deleted file mode 100644 index 7dc96407..00000000 --- a/jjb/release-jjb-jellyfish-sources/include-release-jjb-release-sources-rsync.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/bash - -#set -x -set -e - -mkdir -p ~/bin/ || true -curl https://storage.googleapis.com/git-repo-downloads/repo-1 > ~/bin/repo -chmod a+x ~/bin/repo -export PATH=$PATH:~/bin/ - -# construct upload folder - - -BRANCH=${RELEASE_BRANCH} -REVISION=${RELEASE_VERSION} - - -rm -rf AGLRELEASE || true - -mkdir agl-${BRANCH}-${REVISION} -pushd agl-${BRANCH}-${REVISION} - -repo init --reference=/opt/AGL/preclone -q -b ${GERRIT_BRANCH} -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo -m ${BRANCH}_${REVISION}.xml - -repo sync --force-sync - -repo manifest -r > ../${BRANCH}_${REVISION}.tar.xml - -rm -rf .repo -find . -name *.git | xargs rm -rf - -ln -sf meta-agl/README-AGL.md - -cat < 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 -- cgit 1.2.3-korg