Use new SSH class to execute image build

This commit is contained in:
Robert Schmidt
2023-01-11 15:15:06 +01:00
parent de4a9e1d5a
commit 7361c1689e
2 changed files with 51 additions and 51 deletions
+1 -1
View File
@@ -352,7 +352,7 @@ class Cluster:
self.cmd.run(f'for pod in $(oc get pods | tail -n +2 | awk \'{{print $1}}\'); do oc get pod $pod -o json &>> cmake_targets/log/build_pod_summary.log; done', '\$', 60)
build_log_name = f'build_log_{self.testCase_id}'
cls_containerize.CopyLogsToExecutor(self.cmd, lSourcePath, build_log_name, lIpAddr, 'oaicicd', CONST.CI_NO_PASSWORD)
cls_containerize.CopyLogsToExecutor(self.cmd, lSourcePath, build_log_name)
self.cmd.run('for pod in $(oc get pods | tail -n +2 | awk \'{print $1}\'); do oc delete pod ${pod}; done')