Allow <series>-last tag to be released for Unmaintained release
'<series>-last' tag is used to tag Tempest and its plugins to work as last tag for EM release. Now with Unmaintained release model, we need to allow this tag for Unmaintianed release also. It will help Unmaintained branches to be tested with a compatible version of Tempest and its plugin. Change-Id: I7f58ad4570aead3b73bfab5c47cd29fa7a0a1700
This commit is contained in:
parent
dd195342ca
commit
76070df5bc
@ -1197,9 +1197,9 @@ def validate_version_numbers(deliv, context):
|
||||
context.error(
|
||||
"LAST tag {} should match branch name (e.g {}-last)".format(
|
||||
release.version, deliv.series))
|
||||
if not deliv.series_info.is_em:
|
||||
if not (deliv.series_info.is_em or deliv.series_info.is_eom):
|
||||
context.error(
|
||||
"LAST tag {} aren't allowed on a series ({}) that are not EM".format(
|
||||
"LAST tag {} aren't allowed on a series ({}) that are not EM or Unmaintained".format(
|
||||
release.version, deliv.series))
|
||||
continue
|
||||
|
||||
|
@ -55,6 +55,10 @@ class Series(object):
|
||||
def is_em(self):
|
||||
return self.status == 'extended maintenance'
|
||||
|
||||
@property
|
||||
def is_eom(self):
|
||||
return self.status == 'unmaintained'
|
||||
|
||||
@property
|
||||
def is_maintained(self):
|
||||
return self.status == 'maintained' or self.status == 'development'
|
||||
|
Loading…
x
Reference in New Issue
Block a user