Merge pull request #1651 from coreos-inc/fix-branches

Fix handling of multi-part branches in the build triggers
This commit is contained in:
josephschorr 2016-07-26 16:00:21 -07:00 committed by GitHub
commit 46a28617e8
7 changed files with 232 additions and 21 deletions

View file

@ -665,6 +665,12 @@ class BUILD_PHASE(object):
WAITING = 'waiting'
COMPLETE = 'complete'
@classmethod
def is_terminal_phase(cls, phase):
return (phase == cls.COMPLETE or
phase == cls.ERROR or
phase == cls.INTERNAL_ERROR)
class QueueItem(BaseModel):
queue_name = CharField(index=True, max_length=1024)