summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2017-11-13 11:48:10 -0500
committerMattia Rizzolo <mattia@debian.org>2017-11-13 17:50:36 +0100
commit4574000d67240cd434d0ccc8dbfda974468228ae (patch)
tree85235bd03b418147e1408761170b7405d960a2e0 /bin
parent95b9e064ac51a919a0bba3f181aac025fb8a7d0c (diff)
downloadjenkins.debian.net-4574000d67240cd434d0ccc8dbfda974468228ae.tar.xz
Reproducible FreeBSD: start with the correct time
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_freebsd.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh
index 472835e9..c984c5a1 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')