From 8bbf86913fe5013b38e44f3854babb13362aeba6 Mon Sep 17 00:00:00 2001 From: Athanasios Karmas <karmas@athenarc.gr> Date: Wed, 14 Jul 2021 11:55:38 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e927861e..afcfd1be 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,8 +21,7 @@ deploy-build-environment: # start the deploy job - oc create -f simplejob.yml # wait for job to finish https://stackoverflow.com/questions/5073453wait-for-kubernetes-job-to-complete-on-either-failure-success-using-command-line - - oc get job/simplejob -o=jsonpath='{.status}' -w - - oc get job/simplejob -o=jsonpath='{.status.conditions[*].type}' | grep -i -E 'failed|complete' || echo 'Failed' + - oc get job/simplejob -o=jsonpath='{.status}' -w && oc get job/simplejob -o=jsonpath='{.status.conditions[*].type}' | grep -i -E 'failed|complete' || echo 'Failed' - oc logs jobs/simplejob tags: - shell-runner -- GitLab