summaryrefslogtreecommitdiffstats
path: root/update_jdn.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update_jdn.sh')
-rwxr-xr-xupdate_jdn.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index bfd2e0e8..2de1d31a 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -8,6 +8,7 @@ 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
explain() {
echo "$HOSTNAME: $1"
@@ -434,7 +435,7 @@ if [ "$HOSTNAME" = "jenkins" ] || [ "$HOSTNAME" = "jenkins-test-vm" ] ; then
rm -f $TMPFILE
for config in *.yaml ; do
if [ $config -nt $STAMP ] || [ ! -f $STAMP ] ; then
- sudo jenkins-jobs update $config
+ $JJB update $config
else
echo "$config has not changed, nothing to do."
fi