aboutsummaryrefslogtreecommitdiff
path: root/tcwg-binutils.yaml
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2017-05-20 19:45:25 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2017-05-20 19:45:25 +0000
commit882ad4e93050f689af5ee20467ab8b42a9b1d15a (patch)
tree1106291f98047cbf555bdd28a3b158b2a27b418b /tcwg-binutils.yaml
parent8a077437023efe8afe07d50935a45b548f8b036f (diff)
tcwg-binutils: Workaround result files ownership differences.
sum files created inside the container have different gid than on the host, resulting in errors when compressing them with xz (Cannot set the file group: Operation not permitted). Make a copy, which we can compress before upload. Change-Id: I33884a88910619b53ca08c749f15b628ef981fd9
Diffstat (limited to 'tcwg-binutils.yaml')
-rw-r--r--tcwg-binutils.yaml17
1 files changed, 10 insertions, 7 deletions
diff --git a/tcwg-binutils.yaml b/tcwg-binutils.yaml
index 2b89c9f7..e6fbc710 100644
--- a/tcwg-binutils.yaml
+++ b/tcwg-binutils.yaml
@@ -168,13 +168,16 @@
log_server="${log_server%:*}"
eval dir=${log_name}
ssh ${log_server} mkdir -p ${basedir}/${dir}
- for sum in ${sums}
- do
- # gcc-compare-results handles only .xz files, so
- # compress them before upload
- xz $sum
- scp ${sum}.xz ${log_server}:${basedir}/${dir}/
- done
+ # gcc-compare-results handles only .xz files, so compress
+ # them before upload. Since the file are created inside a
+ # container, the uid/gid may differ from the host's and
+ # cause permission errors during compression. Copy them,
+ # so that xz can operate.
+ rm -rf artifacts
+ mkdir -p artifacts
+ cp ${sums} artifacts
+ xz artifacts/*.sum
+ scp artifacts/*.sum.xz ${log_server}:${basedir}/${dir}/
echo BUILD FINISHED $(date)