summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/d-i_check_jobs.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/d-i_check_jobs.sh b/bin/d-i_check_jobs.sh
index a781912e..9734568b 100755
--- a/bin/d-i_check_jobs.sh
+++ b/bin/d-i_check_jobs.sh
@@ -11,9 +11,13 @@ set -e
export LC_ALL=C
export http_proxy="http://localhost:3128"
+#
+# define some variables
+#
URL="http://anonscm.debian.org/viewvc/d-i/trunk/.mrconfig?view=co"
FAIL=false
DI_JOBPATTERN=d-i_build_
+TMPFILE=$(mktemp)
#
# check for missing d-i package build jobs
@@ -21,10 +25,10 @@ DI_JOBPATTERN=d-i_build_
# (see http://wiki.debian.org/DebianInstaller/CheckOut)
#
echo "Scanning $URL for reffered git repos which have no jenkins job associated."
-curl $URL 2>/dev/null
+curl $URL > $TMPFILE 2>/dev/null
for PACKAGE in $( grep git.debian.org/git/d-i $TMPFILE|cut -d "/" -f6-) ; do
#
- # check if a jenkins job exist
+ # check if a jenkins job exists
#
if [ ! -d ~jenkins/jobs/${DI_JOBPATTERN}${PACKAGE} ] ; then
echo "Warning: No build job \'${DI_JOBPATTERN}${PACKAGE}\'."
@@ -34,6 +38,7 @@ for PACKAGE in $( grep git.debian.org/git/d-i $TMPFILE|cut -d "/" -f6-) ; do
fi
done
echo
+rm $TMPFILE
#
# check for missing d-i manual lanague build jobs