summaryrefslogtreecommitdiffstats
path: root/hosts/freebsd-jenkins/usr/local/etc/sudoers
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-07-24 13:13:05 +0200
committerHolger Levsen <holger@layer-acht.org>2015-07-24 13:13:05 +0200
commit9f7e744f66e42824cd7d66063b8ebcab915733e7 (patch)
treecaf79dfa9bce6555e6e80957de39b942540bc2b8 /hosts/freebsd-jenkins/usr/local/etc/sudoers
parent0df94f4fa67fb295455e2fdfd72a5865f2ec2c8c (diff)
downloadjenkins.debian.net-9f7e744f66e42824cd7d66063b8ebcab915733e7.tar.xz
reproducible freebsd: run 'make buildworld' with sudo as it needs to write to /usr/obj
Diffstat (limited to 'hosts/freebsd-jenkins/usr/local/etc/sudoers')
-rw-r--r--hosts/freebsd-jenkins/usr/local/etc/sudoers9
1 files changed, 7 insertions, 2 deletions
diff --git a/hosts/freebsd-jenkins/usr/local/etc/sudoers b/hosts/freebsd-jenkins/usr/local/etc/sudoers
index b6670c1a..3999cde4 100644
--- a/hosts/freebsd-jenkins/usr/local/etc/sudoers
+++ b/hosts/freebsd-jenkins/usr/local/etc/sudoers
@@ -34,7 +34,7 @@
##
## Uncomment if needed to preserve environmental variables related to the
## FreeBSD pkg_* utilities and fetch.
-# Defaults env_keep += "PKG_PATH PKG_DBDIR PKG_TMPDIR TMPDIR PACKAGEROOT PACKAGESITE PKGDIR FTP_PASSIVE_MODE"
+Defaults env_keep += "PKG_PATH PKG_DBDIR PKG_TMPDIR TMPDIR PACKAGEROOT PACKAGESITE PKGDIR FTP_PASSIVE_MODE"
##
## Additionally uncomment if needed to preserve environmental variables
## related to portupgrade
@@ -44,7 +44,9 @@
## when running commands via sudo.
##
## Locale settings
-# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
+Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
+# for reproducible builds:
+Defaults env_keep += "TZ"
##
## Run X applications through sudo; HOME is used to find the
## .Xauthority file. Note that other programs use HOME to find
@@ -89,6 +91,9 @@ root ALL=(ALL) ALL
## Uncomment to allow members of group sudo to execute any command
# %sudo ALL=(ALL) ALL
+# for reproducible builds:
+jenkins ALL= NOPASSWD: /usr/bin/make buildworld
+
## Uncomment to allow any user to run sudo if they know the password
## of the user they are running the command as (root by default).
# Defaults targetpw # Ask for the password of the target user