path: root/contrib
diff options
authorNeels Hofmeyr <neels@hofmeyr.de>2017-09-07 18:29:52 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2017-09-07 18:34:07 +0200
commitebc7426f85d03636c9045c8f9096f2d6fc2a6457 (patch)
tree4065cd59f17d4424d6b5a8d3bf5a36b287ac0742 /contrib
parent36e0404f456b32898d174b8bdfb363dbe580db2e (diff)
jenkins: properly clean previous artifacts
Drop the second 'rm -f' from the rm shell command (typo). Remove all artifacts matching *.build-*.{tgz,md5} because if a job changes the name of its artifact, the previous artifacts would remain. (I hit this with the new scripts being originally wrong and all producing 'osmo-msc.*' artifacts, and those stuck around in the workspace even after the name was fixed.) Change-Id: I00d246226f4c723696bb737ed707cfd0e4c33714
Diffstat (limited to 'contrib')
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/jenkins-build-common.sh b/contrib/jenkins-build-common.sh
index e15c616..a5b34af 100644
--- a/contrib/jenkins-build-common.sh
+++ b/contrib/jenkins-build-common.sh
@@ -56,7 +56,7 @@ export LD_LIBRARY_PATH="$prefix_real/lib:$LD_LIBRARY_PATH"
env | grep -v "^LESS" | sort
# clean the workspace
-rm -f "$base/${name}"*.tgz rm -f "$base/${name}"*.md5
+rm -f "$base"/*.build-*.{tgz,md5}
rm -rf "$prefix_real"
mkdir -p "$prefix_real"