summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_graphs.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-02 22:59:22 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-02 22:59:22 +0100
commitf95dda6ae388f08c80c118b00905e42a90de7c1d (patch)
treeebbb2958084ab0fc233633a9c42c0ec00da0225d /bin/reproducible_html_graphs.sh
parent13100bcb1d196c90b96bf1532f988fc0ba3fd782 (diff)
downloadjenkins.debian.net-f95dda6ae388f08c80c118b00905e42a90de7c1d.tar.xz
reproducible: mkdir tmpdir
Diffstat (limited to 'bin/reproducible_html_graphs.sh')
-rwxr-xr-xbin/reproducible_html_graphs.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh
index 71d12bcb..a505accf 100755
--- a/bin/reproducible_html_graphs.sh
+++ b/bin/reproducible_html_graphs.sh
@@ -223,8 +223,10 @@ redo_png() {
sqlite3 -init ${INIT} -csv ${PACKAGES_DB} "SELECT ${FIELDS[$1]} from ${TABLE[$1]} ${WHERE_EXTRA} ORDER BY datum" >> ${TABLE[$1]}.csv
# only generate graph is the query returned data
if [ $(cat ${TABLE[$1]}.csv | wc -l) -gt 1 ] ; then
+ mkdir $(dirname $2)
/srv/jenkins/bin/make_graph.py ${TABLE[$1]}.csv $2 ${COLOR[$1]} "${MAINLABEL[$1]}" "${YLABEL[$1]}"
mv $2 /var/lib/jenkins/userContent/$SUITE
+ rmdir $(dirname $2)
fi
rm ${TABLE[$1]}.csv
}