From 85741d37ede8bed1607da234a6afd698b5cc729f Mon Sep 17 00:00:00 2001 From: Athanasios Karmas <karmas@athenarc.gr> Date: Fri, 23 Jul 2021 12:54:48 +0000 Subject: [PATCH] Delete job from OpenShift after the build has been executed --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c1959704..4dd3db32 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,7 +41,7 @@ deploy-build-environment: # if spack install has failed, fail the pipeline - if [ $(cat log.txt |grep "Error:"|wc -l) -gt 1 ]; then exit 1;fi; # delete the job from OpenShift as we have the logs here - #- oc delete job simplejob${CI_PIPELINE_ID} || true + - oc delete job simplejob${CI_PIPELINE_ID} || true tags: - shell-runner -- GitLab