[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: create dummy pic of there are no results yet
Holger Levsen
holger at moszumanska.debian.org
Mon May 11 16:21:45 UTC 2015
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 b273d2c242e681b6d74cab1687cc7608a4688a39
Author: Holger Levsen <holger at layer-acht.org>
Date: Mon May 11 18:21:29 2015 +0200
reproducible: create dummy pic of there are no results yet
---
bin/reproducible_html_graphs.sh | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh
index 16ad407..1c77922 100755
--- a/bin/reproducible_html_graphs.sh
+++ b/bin/reproducible_html_graphs.sh
@@ -314,6 +314,14 @@ create_png_from_table() {
/srv/jenkins/bin/make_graph.py ${TABLE[$1]}.csv $2 ${COLOR[$1]} "${MAINLABEL[$1]}" "${YLABEL[$1]}"
mv $2 $BASE/$DIR
[ "$DIR" = "." ] || rmdir $(dirname $2)
+ # create empty dummy png if there havent been any results ever
+ elif [ ! -f $BASE/$DIR/$(basename $2) ] ; then
+ DIR=$(dirname $2)
+ mkdir -p $DIR
+ echo "Creating $2 dummy."
+ convert -size 1600x800 xc:#aaaaaa -depth 8 $2
+ mv $2 $BASE/$DIR
+ [ "$DIR" = "." ] || rmdir $(dirname $2)
fi
rm ${TABLE[$1]}.csv
}
@@ -463,8 +471,8 @@ create_pkg_sets_page() {
write_page "<br />"
fi
write_page "</p>"
- fi
write_page_meta_sign
+ fi
done
write_page_footer
publish_page $SUITE/$ARCH
--
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