mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-02-12 17:44:59 +08:00
Call finalize method on builder
This commit is contained in:
@@ -240,6 +240,19 @@ class GenericBuilder(six.with_metaclass(ABCMeta)):
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
def finalize(self):
|
||||
"""
|
||||
:return: None
|
||||
|
||||
This method is supposed to be called after all module builds are
|
||||
successfully finished.
|
||||
|
||||
It could be utilized for various purposes such as cleaning or
|
||||
running additional build-system based operations on top of
|
||||
finished builds (e.g. for copr - composing them into module)
|
||||
"""
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
@abstractmethod
|
||||
def repo_from_tag(self, config, tag_name, arch):
|
||||
|
||||
@@ -139,3 +139,4 @@ def done(config, session, msg):
|
||||
else:
|
||||
module_build.transition(config, state=models.BUILD_STATES['done'])
|
||||
session.commit()
|
||||
builder.finalize()
|
||||
|
||||
Reference in New Issue
Block a user