diff --git a/ci-scripts/cls_containerize.py b/ci-scripts/cls_containerize.py index 287144be86..34be8fdb1d 100644 --- a/ci-scripts/cls_containerize.py +++ b/ci-scripts/cls_containerize.py @@ -334,7 +334,6 @@ class Containerize(): self.cliOptions = '' self.imageToCopy = '' - self.registrySvrId = '' self.testSvrId = '' self.imageToPull = [] #checkers from xml @@ -725,8 +724,8 @@ class Containerize(): HTML.CreateHtmlTabFooter(False) return False - def Push_Image_to_Local_Registry(self, HTML): - lIpAddr, lSourcePath = self.GetCredentials(self.registrySvrId) + def Push_Image_to_Local_Registry(self, HTML, svr_id): + lIpAddr, lSourcePath = self.GetCredentials(svr_id) logging.debug('Pushing images from server: ' + lIpAddr) ssh = cls_cmd.getConnection(lIpAddr) imagePrefix = 'porcepix.sboai.cs.eurecom.fr' diff --git a/ci-scripts/main.py b/ci-scripts/main.py index 63be1b836e..7b6ee6fb25 100644 --- a/ci-scripts/main.py +++ b/ci-scripts/main.py @@ -370,10 +370,8 @@ def ExecuteActionWithParam(action): success = SCA.CppCheckAnalysis(HTML) elif action == 'Push_Local_Registry': - string_field = test.findtext('registry_svr_id') - if (string_field is not None): - CONTAINERS.registrySvrId = string_field - success = CONTAINERS.Push_Image_to_Local_Registry(HTML) + svr_id = test.findtext('svr_id') + success = CONTAINERS.Push_Image_to_Local_Registry(HTML, svr_id) elif action == 'Pull_Local_Registry': string_field = test.findtext('test_svr_id') diff --git a/ci-scripts/xml_files/container_image_build.xml b/ci-scripts/xml_files/container_image_build.xml index 58b3c00d5e..7db63e4281 100644 --- a/ci-scripts/xml_files/container_image_build.xml +++ b/ci-scripts/xml_files/container_image_build.xml @@ -49,7 +49,7 @@ Push_Local_Registry Push Images to Local Registry - 0 + 0