summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-05-04 18:17:50 +0200
committerHolger Levsen <holger@layer-acht.org>2015-05-04 18:31:41 +0200
commit7cbfcfc0e6288c87a502cde3e9d5488863de21b5 (patch)
tree09a3ef21931d353b2ad9da2fa48f6c45726d7a90
parent7a381a6fe6f017260bc3c1fb6487d2b4047dd1ec (diff)
downloadjenkins.debian.net-7cbfcfc0e6288c87a502cde3e9d5488863de21b5.tar.xz
add to the vcs the jenkins' ssh authorized_keys, that enable the reproducible team to reschedule packages themselves
-rw-r--r--jenkins-home/authorized_keys1
-rwxr-xr-xupdate_jdn.sh5
2 files changed, 6 insertions, 0 deletions
diff --git a/jenkins-home/authorized_keys b/jenkins-home/authorized_keys
new file mode 100644
index 00000000..a47f3e93
--- /dev/null
+++ b/jenkins-home/authorized_keys
@@ -0,0 +1 @@
+command="/srv/jenkins/bin/reproducible_remote_scheduler.py ${SSH_ORIGINAL_COMMAND#* }",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,from="5.153.231.21" ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDpGiuER4rTtpgpvaSgHpILeln7Qq+arV6a+EhgKlxnInmV6OwA/LacqyEq8sptZYrppllmr9v1d58NVH6uGXHe0p8TYrBBaYNuuMCf2wsKdXH1VTCIiv27XYyS3iYQJnt1n4+4aae81iYA0aRbv5nV2lhlMc7MsK7jNcCxRhYtwEVPMyvLWpWeRmA7oum+0iQl5HCqV5a4Vn5/IMmH4PWGMB+Ga+EDk7XliHQthh6FpfM2biAgmcA+2Y4DTOzvtm7WJQkn3eui1J50Z5wTKBEFZ/raHxee0dt6gYuIDU9g7yavs0CiwFWsqLEH15WJ+fO1/nfl9EV+43FEb/ZEhR6HsPKr/MSF4wckjNva9mJtpoGOLUgToW060TTVnouIayHK8+x62elgReHy3z18MNvuPXuFJaxZYqGnJa4IDr4YvrdRe5DGpUhG/Jqp1cRUxbZ2zZC43ytV8VNXISefY38dO6HEj2H81y/RTMNmOVwNjI4Iy865Tjnrroj18P5G8ioHMU8SzKY/pzSGvdHhrfOk4uv3LZSDN4W7aSUgD2XtPDgjeADZIBE2QV4FIcAF3dT3aAYshE7hpgJUYphIAp4KxQQPsw67NWh+UFnHGybbcp4zGW3SZ8jxj8UUpuNM15JqRG+8nSiDHXmXMahzhyfFEvXBrMMGf+SIYI/CA4OLhQ== reproducible@moszumanska
diff --git a/update_jdn.sh b/update_jdn.sh
index a5ea4a7b..1011f730 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -226,6 +226,11 @@ for dir in bin logparse job-cfg features live ; do
chown -R jenkins-adm.jenkins-adm /srv/jenkins/$dir
done
cp procmailrc /var/lib/jenkins/.procmailrc
+mkdir /var/lib/jenkins/.ssh
+cp jenkins-home/authorized_keys /var/lib/jenkins/.ssh/authorized_keys
+chown -R jenkins:jenkins /var/lib/jenkins/.ssh
+chmod 700 /var/lib/jenkins/.ssh
+chmod 600 /var/lib/jenkins/.ssh/authorized_keys
explain "Jenkins updated."
cp -pr README INSTALL TODO CONTRIBUTING d-i-preseed-cfgs /var/lib/jenkins/userContent/
TMPFILE=$(mktemp)