Skip to content

Commit

Permalink
Merge branch 'trigger' of git://github.com/tomprince/buildbot
Browse files Browse the repository at this point in the history
* 'trigger' of git://github.com/tomprince/buildbot:
  Fix Trigger step when updateSourceStamp == False.

Fixes #1052
  • Loading branch information
djmitche committed Jul 17, 2011
2 parents 7918ef3 + fbb9d5e commit b3f7c7b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions master/buildbot/steps/trigger.py
Expand Up @@ -77,15 +77,18 @@ def __init__(self, schedulerNames=[], sourceStamp=None, updateSourceStamp=None,
"""
assert schedulerNames, "You must specify a scheduler to trigger"
if sourceStamp and updateSourceStamp:
if sourceStamp and (updateSourceStamp is not None):
raise ValueError("You can't specify both sourceStamp and updateSourceStamp")
if sourceStamp and alwaysUseLatest:
raise ValueError("You can't specify both sourceStamp and alwaysUseLatest")
if alwaysUseLatest and updateSourceStamp:
if alwaysUseLatest and (updateSourceStamp is not None):
raise ValueError("You can't specify both alwaysUseLatest and updateSourceStamp")
self.schedulerNames = schedulerNames
self.sourceStamp = sourceStamp
self.updateSourceStamp = updateSourceStamp or not (alwaysUseLatest or sourceStamp)
if updateSourceStamp is not None:
self.updateSourceStamp = updateSourceStamp
else:
self.updateSourceStamp = not (alwaysUseLatest or sourceStamp)
self.alwaysUseLatest = alwaysUseLatest
self.waitForFinish = waitForFinish
self.set_properties = set_properties
Expand Down

0 comments on commit b3f7c7b

Please sign in to comment.