summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-04-06 00:12:38 +0200
committerHolger Levsen <holger@layer-acht.org>2015-04-18 17:20:08 +0200
commitd855aa85e63bc76ec272d4967116f10667f61698 (patch)
tree99383475ba47f1f4771b7b5bbbb9bdf2041566b8
parentabecdded93a8a9c3aeb79ec595c3ada74b929a9e (diff)
downloadjenkins.debian.net-d855aa85e63bc76ec272d4967116f10667f61698.tar.xz
reproducible: build: refactor: add a init() function to gather initialization of the build environment
-rwxr-xr-xbin/reproducible_build.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 22b35312..e2d134c0 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -171,10 +171,9 @@ choose_package () {
fi
}
+init() {
if [ $SAVE_ARTIFACTS -eq 1 ] ; then
AANOUNCE=" Artifacts will be preserved."
- else
- AANOUNCE=""
fi
create_results_dirs
echo "============================================================================="
@@ -182,6 +181,7 @@ choose_package () {
echo "============================================================================="
# mark build attempt
sqlite3 -init $INIT ${PACKAGES_DB} "REPLACE INTO schedule (package_id, date_scheduled, date_build_started) VALUES ('$SRCPKGID', '$SCHEDULED_DATE', '$DATE');"
+}
TMPDIR=$(mktemp --tmpdir=/srv/reproducible-results -d)
TMPCFG=$(mktemp -t pbuilderrc_XXXX)
@@ -197,6 +197,9 @@ START=$(date +'%s')
choose_package
+init
+
+
echo "Starting to build ${SRCPACKAGE}/${SUITE} on $DATE" | tee ${RBUILDLOG}
echo "The jenkins build log is/was available at $BUILD_URL/console" | tee -a ${RBUILDLOG}