Make JOBS a variable
authorChristoph Berg <myon@debian.org>
Sat, 31 Oct 2015 20:49:46 +0000 (21:49 +0100)
committerChristoph Berg <myon@debian.org>
Sat, 31 Oct 2015 20:49:46 +0000 (21:49 +0100)
jenkins/Makefile

index fc5e1baee4b5e090d81e4ba2105472b9862a907b..385adb8a7c47646f5cbb794b24657e7b7a711df9 100644 (file)
@@ -1,21 +1,23 @@
+JOBS = pgapt-jobs.yaml
+
 # we write to output.tmp first so output.{old,new} are left untouched in case
 # jenkins-jobs aborts
 test:
-       @echo "*** Testing pgapt-jobs.yaml ***"
+       @echo "*** Testing $(JOBS) ***"
        rm -rf output.tmp
        mkdir output.tmp
-       jenkins-jobs test -o output.tmp pgapt-jobs.yaml
+       jenkins-jobs test -o output.tmp $(JOBS)
        if test -d output.new; then rm -rf output.old; mv output.new output.old; fi
        mv output.tmp output.new
        test -d output.old && diff -urp output.old output.new || true
 
 update:
-       @echo "*** Updating Jenkins from pgapt-jobs.yaml ***"
-       jenkins-jobs update pgapt-jobs.yaml
+       @echo "*** Updating Jenkins from $(JOBS) ***"
+       jenkins-jobs update $(JOBS)
 
 update-pgdgbuild:
-       @echo "*** Updating Jenkins from pgapt-jobs.yaml ***"
-       jenkins-jobs --conf jenkins_jobs.ini update pgapt-jobs.yaml
+       @echo "*** Updating Jenkins from $(JOBS) ***"
+       jenkins-jobs --conf jenkins_jobs.ini update $(JOBS)
 
 clean:
        rm -rf output output.old