[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible freebsd: do the 2nd build 398 days in future
Holger Levsen
holger at moszumanska.debian.org
Sat Nov 14 11:44:25 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 f7088b89f5de284223aa5ace719b107ce9f98796
Author: Holger Levsen <holger at layer-acht.org>
Date: Sat Nov 14 12:44:11 2015 +0100
reproducible freebsd: do the 2nd build 398 days in future
---
bin/reproducible_freebsd.sh | 8 ++++----
hosts/freebsd-jenkins/usr/local/etc/sudoers | 6 +++++-
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh
index 9f3b9bc..c71a80d 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 978b0b8..cd3a3d7 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
--
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