aboutsummaryrefslogtreecommitdiff
path: root/tcwg-gnu-builds.yaml
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-03-10 11:22:18 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-03-10 11:25:52 +0000
commit3bee088abf379483eeebc9aaba85eba41948df9e (patch)
tree19eb5bde9773ef130dd95692b5f457f4c361342a /tcwg-gnu-builds.yaml
parent70f79ac5ff173db5cf6e5ee3187f54c50c22ee28 (diff)
tcwg-gnu-builds: Fix upload of builds to snapshots.l.o
Before this patch we uploaded builds to snapshots.linaro.org/gnu-toolchain/, which tried to overwrite BUILD-INFO.txt under gnu-toolchain/ directory, and, while the upload itself succeeded, linaro-cp.py exited with an error. This patch fixes this by uploading to gnu-toolchain/$out_release directory. Change-Id: Ib3af7636669697ddd14fda620582758e847468c4
Diffstat (limited to 'tcwg-gnu-builds.yaml')
-rw-r--r--tcwg-gnu-builds.yaml22
1 files changed, 17 insertions, 5 deletions
diff --git a/tcwg-gnu-builds.yaml b/tcwg-gnu-builds.yaml
index af9121ab18..b3da149864 100644
--- a/tcwg-gnu-builds.yaml
+++ b/tcwg-gnu-builds.yaml
@@ -237,6 +237,20 @@
i=$(($i-1))
done
+ if [ x"$(ls out/ | wc -l)" != x"1" ]; then
+ echo "ERROR: not a single directory in builds artifacts:"
+ ls -l out/
+ exit 1
+ fi
+ set +f
+ out_release=out/*-$release_name-$buildnumber
+ set -f
+ if ! [ -d "$out_release" ]; then
+ echo "ERROR: no $out_release directory in builds artifacts:"
+ ls -l out/
+ exit 1
+ fi
+
cat > HEADER-latest-rel.textile <<EOF
h4. Linaro Toolchain Upstream Integration Builds - Stable $release_name-$buildnumber
@@ -265,9 +279,7 @@
EOF
cp HEADER-$version.textile HEADER.textile
- set +f
- cp HEADER.textile out/*-$release_name-$buildnumber/
- set -f
+ cp HEADER.textile "$out_release/"
wget https://git.linaro.org/ci/publishing-api.git/plain/linaro-cp.py -O ./linaro-cp.py
linaro_cp_opts=""
@@ -275,7 +287,7 @@
linaro_cp_opts="--dry-run"
fi
time python3 ./linaro-cp.py --api_version 3 $linaro_cp_opts \
- out/ gnu-toolchain
+ "$out_release/" gnu-toolchain
- job:
name: tcwg-gnu-builds-monthly
@@ -321,4 +333,4 @@
predefined-parameters: |
version=master
distro=lts
-# checksum: 863f65010bcb0028cb357bd67db85480
+# checksum: a2a0c41009cd64d4e04d7f550d9a58d7