[Qa-jenkins-scm] [jenkins.debian.net] 01/01: hunt down jobs that we no longer define
Holger Levsen
holger at moszumanska.debian.org
Thu Jan 7 21:30:37 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 6a4a42690ce6a521cff41fc89b76c50f3b553ff3
Author: Philip Hands <phil at hands.com>
Date: Thu Jan 7 22:16:17 2016 +0100
hunt down jobs that we no longer define
---
job-cfg/Makefile | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/job-cfg/Makefile b/job-cfg/Makefile
index a21db82..7100af4 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)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list