summaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-12 12:53:17 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-12 12:53:17 +0200
commitc1325100358ee12ea765d47c1df304320848c432 (patch)
treef73f65325073f6ad5e884e1c5f7de8d351b129c8 /hosts
parent805573adbbe212329373712f0d50635d94066bf1 (diff)
downloadjenkins.debian.net-c1325100358ee12ea765d47c1df304320848c432.tar.xz
reproducible freebsd: follow the docs and build in /usr/src
Diffstat (limited to 'hosts')
-rw-r--r--hosts/freebsd-jenkins/usr/local/etc/sudoers5
1 files changed, 4 insertions, 1 deletions
diff --git a/hosts/freebsd-jenkins/usr/local/etc/sudoers b/hosts/freebsd-jenkins/usr/local/etc/sudoers
index 3999cde4..6cbddda2 100644
--- a/hosts/freebsd-jenkins/usr/local/etc/sudoers
+++ b/hosts/freebsd-jenkins/usr/local/etc/sudoers
@@ -92,7 +92,10 @@ root ALL=(ALL) ALL
# %sudo ALL=(ALL) ALL
# for reproducible builds:
-jenkins ALL= NOPASSWD: /usr/bin/make buildworld
+jenkins ALL= NOPASSWD: /usr/bin/make buildworld, \
+ rm -r /usr/src /usr/obj, \
+ mkdir /usr/src /usr/obj, \
+ chown jenkins /usr/src /usr/obj
## 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).