summaryrefslogtreecommitdiff
path: root/jenkinstool
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-08-31 20:04:17 +0100
committerLars Wirzenius <liw@liw.fi>2012-08-31 20:04:17 +0100
commitbd29d8a476b88d472d919a2ac92e48c34da3ccc9 (patch)
treed382982fca1d58b3baddd6bd64b310b2964e2f88 /jenkinstool
parent2792b48c060ca5f9fe96e84314df6912e9d6b6d3 (diff)
downloadjenkinstool-bd29d8a476b88d472d919a2ac92e48c34da3ccc9.tar.gz
Add jenkins's apt repo to it sources list
Diffstat (limited to 'jenkinstool')
-rwxr-xr-xjenkinstool7
1 files changed, 6 insertions, 1 deletions
diff --git a/jenkinstool b/jenkinstool
index b5e6a77..c5575ae 100755
--- a/jenkinstool
+++ b/jenkinstool
@@ -369,13 +369,18 @@ fi
'''
- jc = self.create_job_config(host, project, 'apt-upgrade')
+ jc = self.create_job_config(host, project, 'prepare-worker')
jc.set_description('Upgrade build environment on %(host.ssh-target)s '
'for %(project.name)s from %(project.vcs)s')
jc.add_ssh_command('''
+cat << EOF | sudo tee /etc/apt/sources.list.d/jenkinstool.list
+deb %(global.artifacts-url)s/debian %(host.debian-dist)s main
+EOF
+
sudo apt-get update
sudo apt-get --no-remove --allow-unauthenticated -y upgrade
+
cat << EOF > /var/lib/jenkins/.dput.cf
[jenkins]
fqdn = %(global.dput-host)s