summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-01-08 14:10:01 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-08 14:10:01 +0100
commit05b469de3faef6a0d400aff881c872a31c3cbe99 (patch)
treeee537c04f508e41419008133a6d9a86f4a933e33
parentef9672401dcfa71078bc152e156b372e868b967c (diff)
downloadjenkins.debian.net-05b469de3faef6a0d400aff881c872a31c3cbe99.tar.xz
sudo cp
-rwxr-xr-xbin/live-build.sh2
-rw-r--r--etc/sudoers.d/jenkins1
2 files changed, 2 insertions, 1 deletions
diff --git a/bin/live-build.sh b/bin/live-build.sh
index 80c75dd9..8b1129c8 100755
--- a/bin/live-build.sh
+++ b/bin/live-build.sh
@@ -30,7 +30,7 @@ case "$3" in
esac
sudo lb build
mkdir -p /srv/live-build/results
-cp -v live-image-amd64.hybrid.iso /srv/live-build/results/$1_$2_$3_live_amd64.iso
+sudo cp -v live-image-amd64.hybrid.iso /srv/live-build/results/$1_$2_$3_live_amd64.iso
cleanup_all
trap - INT TERM EXIT
diff --git a/etc/sudoers.d/jenkins b/etc/sudoers.d/jenkins
index c1c86ec7..11713c2e 100644
--- a/etc/sudoers.d/jenkins
+++ b/etc/sudoers.d/jenkins
@@ -10,6 +10,7 @@ jenkins ALL= \
/bin/rm -rf --one-file-system /chroots/*, \
/bin/rm -rf --one-file-system /schroots/*, \
/bin/rm -rf --one-file-system /srv/live-build/*, \
+ /bin/cp -v *.iso /srv/live-build/results/*, \
/bin/mv /chroots/* /schroots/*, \
/bin/mv /schroots/* /schroots/*, \
/bin/umount -l /chroots/*, \