Skip to content
Snippets Groups Projects
Commit 53f21e87 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian: refactor: store builtin-pho results on jenkins


Signed-off-by: default avatarHolger Levsen <holger@layer-acht.org>
parent 7e050763
No related branches found
No related tags found
No related merge requests found
......@@ -117,6 +117,15 @@ create_no_buildinfos_page() {
echo "$(date -u) - $REPRODUCIBLE_URL/debian/$SUITE/$ARCH/$PAGE will be updated (via rsync) after this job succeeded..."
}
update_buildinfo_stats() {
mkdir -p ~jenkins/builtin-pho-html/debian/$SUITE/$ARCH
DATE=$(date -u +'%Y-%m-%d')
STATS_FILE=/var/lib/jenkins/builtin-pho-html/debian/$SUITE/$ARCH/builtin-pho_stats.txt
if ! grep -q ^$DATE $STATS_FILE ; then
echo $DATE,$HITS,$MISSES >> $STATS_FILE
fi
}
#
# main
#
......@@ -132,12 +141,7 @@ for ARCH in ${ARCHS} ; do
get_localsuite
query_builtin_pho_db_hits
query_builtin_pho_db_misses
mkdir -p ~jenkins/builtin-pho-html/debian/$SUITE/$ARCH
DATE=$(date -u +'%Y-%m-%d')
STATS_FILE=/var/lib/jenkins/builtin-pho-html/debian/$SUITE/$ARCH/builtin-pho_stats.txt
if ! grep -q ^$DATE $STATS_FILE ; then
echo $DATE,$HITS,$MISSES >> $STATS_FILE
fi
update_buildinfo_stats
create_buildinfos_page
create_no_buildinfos_page
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment