summaryrefslogtreecommitdiffstats
path: root/job-cfg/Makefile
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2016-01-07 22:16:17 +0100
committerHolger Levsen <holger@layer-acht.org>2016-01-07 22:30:24 +0100
commit6a4a42690ce6a521cff41fc89b76c50f3b553ff3 (patch)
treed7d394bfa4f2d971ef619b0c606217e77eb6b10a /job-cfg/Makefile
parentdb01d0bb08820168ad39ead186143242699e5a65 (diff)
downloadjenkins.debian.net-6a4a42690ce6a521cff41fc89b76c50f3b553ff3.tar.xz
hunt down jobs that we no longer define
Diffstat (limited to 'job-cfg/Makefile')
-rw-r--r--job-cfg/Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/job-cfg/Makefile b/job-cfg/Makefile
index a21db825..7100af4f 100644
--- a/job-cfg/Makefile
+++ b/job-cfg/Makefile
@@ -6,15 +6,24 @@ YAMLS := $(wildcard *.yaml) $(PYYAMLS)
XMLS := $(patsubst %.yaml,%.xml,$(YAMLS))
-OUTPUTS := $(PYYAMLS) $(XMLS)
+OUTS := $(patsubst %.yaml,%.jjb-out,$(YAMLS))
+
+OUTPUTS := $(PYYAMLS) $(XMLS) $(OUTS) zombie-names.txt jobs-names.txt
all: $(OUTPUTS)
%.yaml: %.yaml.py
./$< > $@
-%.xml: %.yaml
- jenkins-job-builder test $< > $@
+
+%.xml %.jjb-out: %.yaml
+ jenkins-job-builder test $< > $*.xml 2> $*.jjb-out
+
+jobs-names.txt: $(OUTS)
+ sed -n 's/^INFO:jenkins_jobs.builder:Job name: //p' $(OUTS) > $@
+
+zombie-names.txt: jobs-names.txt ~jenkins/jobs/
+ ls ~jenkins/jobs/ | grep -f jobs-names.txt -F -v > $@
clean:
- rm $(sort $(OUTPUTS))
+ -rm $(OUTPUTS)