summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-11-14 12:44:11 +0100
committerHolger Levsen <holger@layer-acht.org>2015-11-14 12:44:11 +0100
commitf7088b89f5de284223aa5ace719b107ce9f98796 (patch)
treed02be31f51a3de175ad41c965168c967ccac7765
parentca4329bad79e15a96660787e726baf23cbec52df (diff)
downloadjenkins.debian.net-f7088b89f5de284223aa5ace719b107ce9f98796.tar.xz
reproducible freebsd: do the 2nd build 398 days in future
-rwxr-xr-xbin/reproducible_freebsd.sh8
-rw-r--r--hosts/freebsd-jenkins/usr/local/etc/sudoers6
2 files changed, 9 insertions, 5 deletions
diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh
index 9f3b9bc8..c71a80dd 100755
--- a/bin/reproducible_freebsd.sh
+++ b/bin/reproducible_freebsd.sh
@@ -91,8 +91,8 @@ for FREEBSD_TARGET in ${FREEBSD_TARGETS} ;do
set -e
# set time forward 398 days
- #$RSSH "sudo service ntpd stop ; sudo date --set='+398 days' ; date"
- #echo "$(date) - system is running in the future now."
+ $RSSH "sudo service ntpd stop ; sudo date --set='+398 days' ; date"
+ echo "$(date) - system is running in the future now."
echo "============================================================================="
echo "$(date -u) - Building FreeBSD (branch $FREEBSD_TARGET at ${FREEBSD_VERSION}) - second build run."
@@ -116,8 +116,8 @@ for FREEBSD_TARGET in ${FREEBSD_TARGETS} ;do
save_freebsd_results b2
# set time back to today
- #$RSSH "sudo ntpdate -b pool.ntp.org ; sudo service ntpd start ; sudo service ntpd status ; date"
- #echo "$(date) - system is running at the current date now."
+ $RSSH "sudo ntpdate -b pool.ntp.org ; sudo service ntpd start ; sudo service ntpd status ; date"
+ echo "$(date) - system is running at the current date now."
# reset environment to default values again
export LANG="en_GB.UTF-8"
diff --git a/hosts/freebsd-jenkins/usr/local/etc/sudoers b/hosts/freebsd-jenkins/usr/local/etc/sudoers
index 978b0b84..cd3a3d70 100644
--- a/hosts/freebsd-jenkins/usr/local/etc/sudoers
+++ b/hosts/freebsd-jenkins/usr/local/etc/sudoers
@@ -104,7 +104,11 @@ jenkins ALL= NOPASSWD: /usr/bin/make -j ? buildworld, \
/usr/sbin/chown jenkins /usr/src, \
/usr/bin/find /srv/reproducible-results/* -newer /srv/reproducible-results/* -exec touch *, \
/usr/bin/find /srv/reproducible-results/* -print0, \
- /usr/bin/tar --null -T - --no-recursion -cJf *.tar.xz
+ /usr/bin/tar --null -T - --no-recursion -cJf *.tar.xz, \
+ /usr/sbin/service ntpd start, \
+ /usr/sbin/service ntpd stop, \
+ /usr/sbin/service ntpd status, \
+ /usr/sbin/ntpdate -b pool.ntp.org
## Uncomment to allow any user to run sudo if they know the password