def __init__(self, package_info, remote): """Plugin for building docker container on guay registry Args: package_info (dict): Contains information about the package to execute inside the plugin remote (bool): Define if the plugin will be execute in remote or not Raises: CIBuildPackageFail: when one of the steps for packaging or uploading the package failed """ ComplexPlugin.__init__(self, package_info, { "command": { "run": None, "clean": "make clean" } }, remote=remote) self.timeline = { 11: self.get_next_version, 31: self.create_archive, 51: self.store_archive, 71: self.trigger_build, 91: self.wait_build } self.guay = SwaggerClient.from_url("{}/swagger.json".format(GUAY["host"])) self.storage_proxy = SwaggerClient.from_url("{}:{}/v1/swagger.json".format(STORAGE_PROXY["host"], STORAGE_PROXY["port"]))
def __init__(self, package_info): ComplexPlugin.__init__(self, package_info, { "command": { "clean": "make clean" } })
def __init__(self, package_info): ComplexPlugin.__init__(self, package_info, { "command": { "run": None, "clean": "make clean" } }) self.timeline = { 0: self.check_requirements, 80: self.parse }
def __init__(self, artifact_info, remote): """Plugin for building python wheel package Args: artifact_info (dict): Contains information about the package to execute inside the plugin remote (bool): Define if the plugin will be execute in remote or not Raises: CIBuildPackageFail: when one of the steps for packaging or uploading the package failed """ ComplexPlugin.__init__(self, artifact_info, { "command": { "run": None, "clean": artifact_info.get("clean_method", "make clean") } }, remote=remote) self.timeline = { 10: self.get_next_version, 40: self.release } self.pypicloud = PypicloudClient()