diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-08-12 21:04:59 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-08-12 21:04:59 +0100 |
commit | 27e61749adb0fbbcb40da7d3c102bd76c2842c5b (patch) | |
tree | 4c3405bb95fcdc9587fe0af804d64179ac8d49ad /jenkinstool | |
parent | 8c88338793117fb877b95f29a3ec42005adce2c0 (diff) | |
download | jenkinstool-27e61749adb0fbbcb40da7d3c102bd76c2842c5b.tar.gz |
Add job to upgrade build environment with apt
Diffstat (limited to 'jenkinstool')
-rwxr-xr-x | jenkinstool | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/jenkinstool b/jenkinstool index 1c28ba7..14b365d 100755 --- a/jenkinstool +++ b/jenkinstool @@ -211,12 +211,27 @@ fi for host in config['hosts']: build_all = host['debian-dist'] not in build_all_dists build_all_dists.add(host['debian-dist']) + jobs.append(self.apt_upgrade_job(host, project)) jobs.append(self.deb_job(host, project, build_all)) jobs.append(self.process_incoming_job( config, project, 'deb_%s' % host['name'])) return jobs + def apt_upgrade_job(self, host, project): + '''Create job to upgrade the build environment with apt.''' + + jc = self.create_job_config(host, project, 'apt-upgrade') + jc.set_description('Upgrade build environment on %(host.ssh-target)s ' + 'for %(project.name)s from %(project.bzr)s') + + jc.add_ssh_command(''' +sudo apt-get update +sudo apt-get --no-remove --allow-unauthenticated -y upgrade +''') + + return jc + def build_job(self, host, project): '''Generate a job to build a given project on a given host.''' |