Merge "have list-deliverables --no-stable-branch skip tempest repos"

This commit is contained in:
Zuul 2018-09-03 01:34:18 +00:00 committed by Gerrit Code Review
commit 4c02012aba
2 changed files with 13 additions and 0 deletions

View File

@ -199,6 +199,10 @@ def main():
if args.type and deliv.type not in args.type:
continue
if args.no_stable_branch:
if deliv.is_branchless:
continue
if deliv.name == 'release-test':
continue
if deliv.get_branch_location('stable/' + series) is not None:
continue
if args.unreleased and (deliv.is_released or not deliv.is_releasable):

View File

@ -477,6 +477,15 @@ class Deliverable(object):
def is_milestone_based(self):
return self.model == 'cycle-with-milestones'
@property
def is_branchless(self):
# Tempest plugins do not branch.
if self.type == 'tempest-plugin':
return True
if self.name == 'tempest':
return True
return False
@property
def type(self):
if 'tempest-plugin' in self.name: