Don't add a conditional, just add the job.

master
Simon Quigley 5 years ago
parent f32f5dcea3
commit fec50ac982

@ -228,9 +228,7 @@ class Generator:
else: else:
view = server.views.create(view) view = server.views.create(view)
# Only add to the view if it's not already in there view.add_job(name)
if not name in server.views[view]:
view.add_job(name)
@timer.run("Master function loop") @timer.run("Master function loop")
def create_jenkins_jobs(self): def create_jenkins_jobs(self):

Loading…
Cancel
Save