diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-09-21 23:57:00 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-09-21 23:57:00 +0100 |
commit | 7839cc0e24bcacf44a0090da05a81cf01f9ba108 (patch) | |
tree | 70071299cd59b2ac6b4b6ea32ac13edf8cb862d4 /jenkinstool | |
parent | 7d538161103a7f40bf5a2012625dd1d5de9fbcc1 (diff) | |
download | jenkinstool-7839cc0e24bcacf44a0090da05a81cf01f9ba108.tar.gz |
Remove Jenkins build triggers
Diffstat (limited to 'jenkinstool')
-rwxr-xr-x | jenkinstool | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/jenkinstool b/jenkinstool index 77288a3..e63f33b 100755 --- a/jenkinstool +++ b/jenkinstool @@ -216,18 +216,15 @@ class JobGenerator(object): # Setup reprepro on Jenkins host. reprepro = self.reprepro_setup_job(config) - jobs[-1].add_build_trigger(reprepro.job_id()) jobs.append(reprepro) # Create or update pbuilder tarballs. for host in config['hosts']: jc = self.pbuilder_create_job(host) - jobs[-1].add_build_trigger(jc.job_id()) jobs.append(jc) # Trigger all project pipelines. trigger = self.trigger_projects_job(config) - jobs[-1].add_build_trigger(trigger.job_id()) jobs.append(trigger) # Create a pipeline for each project. Every job in the pipeline @@ -238,26 +235,11 @@ class JobGenerator(object): prev = None for jc in self.generate_project(config, project): if prev: - prev.add_build_trigger(jc.job_id()) pipelines[project['name']].append(jc) else: pipelines[project['name']] = [jc] prev = jc jobs.append(jc) - - # Add triggers for each project pipeline: the last job of each of - # its build dependencies triggers the first job in the project's - # pipeline. Projects without build dependencies are triggered by - # the trigger-everything job. - for project in config['projects']: - first = pipelines[project['name']][0] - deps = project.get('build-depends', []) - if deps: - for dep in deps: - pipeline = pipelines[dep] - pipeline[-1].add_build_trigger(first.job_id()) - else: - trigger.add_build_trigger(first.job_id()) return [(jc.job_id(), jc.tostring()) for jc in jobs] |