Skip to content

Commit

Permalink
Skip triggers if there are no ports in the list
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandesign committed Mar 8, 2018
1 parent 0e109dc commit 18135d6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions buildbot/master.cfg
Expand Up @@ -476,18 +476,23 @@ def make_portwatcher_factory(triggerable):
name='subports',
description=['listing', 'subports']))

def has_subportlist(step):
return step.hasProperty('subportlist') and step.getProperty('subportlist')

if 'mirror' in config['deploy']:
portwatcher_factory.addStep(steps.Trigger(
schedulerNames=['mirror'],
set_properties={'subportlist': Property('subportlist'), 'triggered_by': make_build_url},
waitForFinish=True,
updateSourceStamp=True))
updateSourceStamp=True,
doStepIf=has_subportlist))

portwatcher_factory.addStep(TriggerWithPortlist(
schedulerNames=[triggerable],
set_properties={'triggered_by': make_build_url},
waitForFinish=True,
updateSourceStamp=True))
updateSourceStamp=True,
doStepIf=has_subportlist))

# make a logfile summarising the success/failure status for each port
# (Current approach is not so useful as it is not incremental;
Expand Down

0 comments on commit 18135d6

Please sign in to comment.