summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-11-12 21:35:39 +0100
committerHolger Levsen <holger@layer-acht.org>2012-11-12 21:35:39 +0100
commitea5870a4ee38a7fa4b3594e39a72e52b451541a7 (patch)
tree3afb0914c329f76a4254a9d32de88f1f78389d2d /bin
parentd1c6f73f329c71c2e43b38a7fd8b3c66efe633da (diff)
downloadjenkins.debian.net-ea5870a4ee38a7fa4b3594e39a72e52b451541a7.tar.xz
explain how to create yaml code for missing d-i jobs
Diffstat (limited to 'bin')
-rwxr-xr-xbin/d-i_check_jobs.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/d-i_check_jobs.sh b/bin/d-i_check_jobs.sh
index dd149abd..e73bed97 100755
--- a/bin/d-i_check_jobs.sh
+++ b/bin/d-i_check_jobs.sh
@@ -27,6 +27,8 @@ TMPFILE=$(mktemp)
echo "Scanning $URL for reffered git repos which have no jenkins job associated."
curl $URL > $TMPFILE 2>/dev/null
PACKAGES=$( grep git.debian.org/git/d-i $TMPFILE|cut -d "/" -f6-)
+JOB_TEMPLATES=$(mktemp)
+PROJECT_JOBS=$(mktemp)
#
# check for each git repo if a jenkins job exists
#
@@ -34,6 +36,14 @@ for PACKAGE in $PACKAGES ; do
if [ ! -d ~jenkins/jobs/${DI_JOBPATTERN}${PACKAGE} ] ; then
echo "Warning: No build job '${DI_JOBPATTERN}${PACKAGE}'."
FAIL=true
+ #
+ # prepare yaml bits
+ #
+ echo " - '{name}_build_$PACKAGE':" >> $PROJECT_JOBS
+ echo " gitrepo: 'git://git.debian.org/git/d-i/$PACKAGE'" >> $PROJECT_JOBS
+ echo "- job-template:" >> $JOB_TEMPLATES
+ echo " defaults: d-i-build" >> $JOB_TEMPLATES
+ echo " name: '{name}_build_anna'" >> $JOB_TEMPLATES
else
echo "Ok: Job '${DI_JOBPATTERN}${PACKAGE}' exists."
fi
@@ -60,6 +70,15 @@ echo "Warning: check for missing d-i manual build jobs not implemented"
echo
if $FAIL ; then
figlet "Missing jobs!"
+ echo
+ echo "Add these job templates to job-cfg/d-i.yaml:"
+ cat $JOB_TEMPLATES
+ echo
+ echo
+ echo "Append this to the project definition in job-cfg/d-i.yaml:"
+ cat $PROJECT_JOBS
+ echo
+ rm $JOB_TEMPLATES $PROJECT_JOBS
exit 1
else
figlet ok