summaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-10-13 00:11:07 +0200
committerHolger Levsen <holger@layer-acht.org>2015-10-13 00:11:07 +0200
commitcdf0f40d5b810958c95d68e3623a5827c89b7cf1 (patch)
treed309c24042a9593f76c20110f3f7cf7c13335ca5 /hosts
parent9d2b25f3ce3eb552f969f2a03bcccb5536ff71b7 (diff)
downloadjenkins.debian.net-cdf0f40d5b810958c95d68e3623a5827c89b7cf1.tar.xz
reproducible: configure _node_wrapper.sh and sudoers.d correctly
Diffstat (limited to 'hosts')
-rw-r--r--hosts/profitbricks-build3-amd64/etc/sudoers.d/jenkins15
1 files changed, 15 insertions, 0 deletions
diff --git a/hosts/profitbricks-build3-amd64/etc/sudoers.d/jenkins b/hosts/profitbricks-build3-amd64/etc/sudoers.d/jenkins
new file mode 100644
index 00000000..a0127b67
--- /dev/null
+++ b/hosts/profitbricks-build3-amd64/etc/sudoers.d/jenkins
@@ -0,0 +1,15 @@
+jenkins ALL= \
+ NOPASSWD: /usr/sbin/debootstrap *, \
+ /usr/bin/tee /schroots/*, \
+ /usr/bin/tee -a /schroots/*, \
+ /usr/bin/tee /etc/schroot/chroot.d/jenkins*, \
+ /bin/chmod +x /schroots/*, \
+ /usr/sbin/chroot /schroots/*, \
+ /bin/rm -rf --one-file-system /schroots/*, \
+ /bin/rm -rf --one-file-system /srv/live-build/*, \
+ /bin/mv /schroots/* /schroots/*, \
+ /bin/umount -l /schroots/*, \
+ /bin/mount --bind *
+
+# keep these environment variables
+Defaults env_keep += "http_proxy", env_reset