summaryrefslogtreecommitdiffstats
path: root/hosts/profitbricks-build7-amd64/etc/sudoers.d/jenkins
blob: 2dd7149ceaa8dc95f4258ffd252b5dfaf4cd4097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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/*, \
	/bin/chmod +x /chroots/*, \
	/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 *, \
	/usr/bin/killall timeout, \
	/usr/sbin/slay 1111, \
	/usr/sbin/slay 2222, \
	/usr/sbin/slay jenkins, \
	/bin/chmod -R a+rX /var/lib/libvirt/images

# keep these environment variables
Defaults        env_keep += "http_proxy", env_reset