]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
jenkins-job-builder: Set JJB_CONFIG var back after looping through jobs
authorDavid Galloway <dgallowa@redhat.com>
Tue, 31 Oct 2017 17:01:42 +0000 (13:01 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 6 Nov 2017 15:34:13 +0000 (10:34 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
jenkins-job-builder/build/build

index 5bda963d32e0c4300d7aabd02e0c7c82f3d561ae..05488d37484216be7bf8a01d03bc64629cac9a78 100644 (file)
@@ -62,6 +62,9 @@ for dir in `find . -maxdepth 1 -path ./.git -prune -o -type d -print`; do
     fi
 done
 
+# Set JJB_CONFIG back to the one our master wrote so the var can be used in the deletion task below
+JJB_CONFIG="$HOME/.jenkins_jobs.$JENKINS_FQDN.ini"
+
 # Delete jobs our master has that didn't get job xml written during `jenkins-jobs test`
 # jenkins-job-builder doesn't get a config written so we `grep -v it` so it doesn't get deleted.
 for JOB in $(curl -s https://$JENKINS_FQDN/api/json | jq -r '.jobs[].name' | grep -v jenkins-job-builder | sort); do