Allow overriding the prefix for setrelease

Currently if set_snapshot_number is true, it uses "Snapshot" as prefix.
In some cases it's necessary to use a different one. This can now be configured
using the "snapshot_number_prefix" option.
This commit is contained in:
Fabian Vogt 2020-03-03 11:54:43 +01:00
parent 0c3764202c
commit bab96c2f30
2 changed files with 2 additions and 1 deletions

View File

@ -214,7 +214,7 @@ class ToTestReleaser(ToTestManager):
if not self.project.set_snapshot_number:
snapshot = None
if snapshot:
release = 'Snapshot%s' % snapshot
release = self.project.snapshot_number_prefix + snapshot
self.logger.info('Updating snapshot %s' % snapshot)
else:
release = None

View File

@ -27,6 +27,7 @@ class ToTest(object):
self.do_not_release = False
self.need_same_build_number = False
self.set_snapshot_number = False
self.snapshot_number_prefix = "Snapshot"
self.take_source_from_product = False
self.arch = 'x86_64'
self.openqa_server = None