[Qa-jenkins-scm] [jenkins.debian.net] 03/05: reproducible: build: refactor: add a init() function to gather initialization of the build environment
Holger Levsen
holger at moszumanska.debian.org
Sat Apr 18 15:25:01 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 d855aa85e63bc76ec272d4967116f10667f61698
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Mon Apr 6 00:12:38 2015 +0200
reproducible: build: refactor: add a init() function to gather initialization of the build environment
---
bin/reproducible_build.sh | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 22b3531..e2d134c 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}
--
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