diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-03-03 01:21:23 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-03-03 01:22:58 +0100 |
commit | 2a32c1c2affcddbb3b3bb65248d806775fb40363 (patch) | |
tree | 77daae3b3e4743a56c203c77f6f640a509b5f8a9 /bin | |
parent | 920c0231a909b71891e78a2823d3055a03360c5c (diff) | |
download | jenkins.debian.net-2a32c1c2affcddbb3b3bb65248d806775fb40363.tar.xz |
reproducible: start to populate the stats_builds table, to gather stats about all the builds
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_build.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 7dfe1258..b99c7ec6 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -92,6 +92,7 @@ call_debbindiff() { echo "${SRCPACKAGE} built successfully and reproducibly." | tee -a ${RBUILDLOG} calculate_build_duration sqlite3 -init $INIT ${PACKAGES_DB} "REPLACE INTO results (package_id, version, status, build_date, build_duration) VALUES ('${SRCPKGID}', '${VERSION}', 'reproducible', '$DATE', '$DURATION')" + sqlite3 -init $INIT ${PACKAGES_DB} "INSERT INTO stats_builds (name, version, suite, architecture, status, build_date, build_duration) VALUES ('${SRCPACKAGE}', '${VERSION}', '${SUITE}', '${ARCH}', 'reproducible', '${DATE}', '${DURATION}')" update_db_and_html else echo | tee -a ${RBUILDLOG} @@ -116,6 +117,7 @@ call_debbindiff() { fi calculate_build_duration sqlite3 -init $INIT ${PACKAGES_DB} "REPLACE INTO results (package_id, version, status, build_date, build_duration) VALUES ('${SRCPKGID}', '${VERSION}', 'unreproducible', '$DATE', '$DURATION')" + sqlite3 -init $INIT ${PACKAGES_DB} "INSERT INTO stats_builds (name, version, suite, architecture, status, build_date, build_duration) VALUES ('${SRCPACKAGE}', '${VERSION}', '${SUITE}', '${ARCH}', 'unreproducible', '${DATE}', '${DURATION}')" update_db_and_html fi } @@ -264,6 +266,7 @@ else echo "${SRCPACKAGE} failed to build from source." calculate_build_duration sqlite3 -init $INIT ${PACKAGES_DB} "REPLACE INTO results (package_id, version, status, build_date, build_duration) VALUES ('${SRCPKGID}', '${VERSION}', 'FTBFS', '$DATE', '$DURATION')" + sqlite3 -init $INIT ${PACKAGES_DB} "INSERT INTO stats_builds (name, version, suite, architecture, status, build_date, build_duration) VALUES ('${SRCPACKAGE}', '${VERSION}', '${SUITE}', '${ARCH}', 'FTBFS', '${DATE}', '${DURATION}')" update_db_and_html fi fi |