summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-29 13:17:02 +0100
committerHolger Levsen <holger@layer-acht.org>2014-10-29 13:17:02 +0100
commit2db6f29e848ba0381d4ebf933c7b04c02971f8ba (patch)
tree6bad6047d9d96df10a98202aabb1cb101e14073b /bin
parentcf769d7eef56c57c0099b94c5ece4669b7fb9e68 (diff)
downloadjenkins.debian.net-2db6f29e848ba0381d4ebf933c7b04c02971f8ba.tar.xz
really silence it
Diffstat (limited to 'bin')
-rw-r--r--bin/abort.sh7
-rwxr-xr-xbin/reproducible_housekeeping.sh4
2 files changed, 9 insertions, 2 deletions
diff --git a/bin/abort.sh b/bin/abort.sh
new file mode 100644
index 00000000..81b554af
--- /dev/null
+++ b/bin/abort.sh
@@ -0,0 +1,7 @@
+
+TMPFILE=$(mktemp)
+curl https://jenkins.debian.net/jnlpJars/jenkins-cli.jar -o $TMPFILE
+java -jar $TMPFILE -s http://localhost:8080/ set-build-result aborted
+rm $TMPFILE
+exit
+
diff --git a/bin/reproducible_housekeeping.sh b/bin/reproducible_housekeeping.sh
index 7908909f..3086040a 100755
--- a/bin/reproducible_housekeeping.sh
+++ b/bin/reproducible_housekeeping.sh
@@ -83,8 +83,8 @@ QUERY="
ORDER BY date_scheduled
"
PACKAGES=$(mktemp)
-sqlite3 -init $INIT ${PACKAGES_DB} "$QUERY" > $PACKAGES || echo "Warning: SQL query '$QUERY' failed."
-if [ -s $PACKAGES ] ; then
+sqlite3 -init $INIT ${PACKAGES_DB} "$QUERY" > $PACKAGES 2> /dev/null || echo "Warning: SQL query '$QUERY' failed."
+if grep -q '|' $PACKAGES ; then
echo
echo "Warning: packages found where the build was started more than 24h ago:"
echo "name|date_scheduled|date_build_started"