[Qa-jenkins-scm] [jenkins.debian.net] 01/01: Reproducible FreeBSD: start with the correct time
Mattia Rizzolo
mattia at debian.org
Mon Nov 13 16:50:45 UTC 2017
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository jenkins.debian.net.
commit 4574000d67240cd434d0ccc8dbfda974468228ae
Author: Ed Maste <emaste at freebsd.org>
Date: Mon Nov 13 11:48:10 2017 -0500
Reproducible FreeBSD: start with the correct time
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
bin/reproducible_freebsd.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh
index 472835e..c984c5a 100755
--- a/bin/reproducible_freebsd.sh
+++ b/bin/reproducible_freebsd.sh
@@ -100,6 +100,8 @@ for FREEBSD_TARGET in ${FREEBSD_TARGETS} ;do
RSCP="scp -r freebsd-jenkins.debian.net"
TMPBUILDDIR=/usr/src
$RSSH 'sudo rm -rf /usr/src ; sudo mkdir /usr/src ; sudo chown jenkins /usr/src' ### this is tmpfs on linux, we should move this to tmpfs on FreeBSD too
+ # Ensure we start with the correct time on the target
+ $RSSH 'sudo service ntpd stop ; sudo ntpdate -b pool.ntp.org ; sudo service ntpd start ; sudo service ntpd status ; date -u'
TMPDIR=$($RSSH 'TMPDIR=/srv/reproducible-results mktemp -d -t rbuild-freebsd') # used to compare results
DATE=$(date -u +'%Y-%m-%d')
START=$(date +'%s')
--
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