summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2015-12-11 17:51:53 +0100
committerHolger Levsen <holger@layer-acht.org>2015-12-11 17:59:54 +0100
commitfac779c0782a323e279cc19ad4e3af44571d62e9 (patch)
tree7b0c45f040ebccd1c738479f2d6c86ec18e1224c
parent91570ea623257e5b14c1ca1326fbb367c4b658f9 (diff)
downloadjenkins.debian.net-fac779c0782a323e279cc19ad4e3af44571d62e9.tar.xz
update_jdn.sh: pass on args to j-j-b (for --{flush,ignore}-cache opts)
-rwxr-xr-xupdate_jdn.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index 7600db2f..d4c1879f 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -10,7 +10,9 @@ PVNAME=/dev/vdb # LVM physical volume for jobs
VGNAME=jenkins01 # LVM volume group
STAMP=/var/log/jenkins/update-jenkins.stamp
TMPFILE=$(mktemp)
-JJB=jenkins-job-builder
+# The $@ below means that command line args get passed on to j-j-b
+# which allows one to specify --flush-cache or --ignore-cache
+JJB="jenkins-job-builder $@"
explain() {
echo "$HOSTNAME: $1"