Skip to content
Snippets Groups Projects
Commit 8bbf8691 authored by Athanasios Karmas's avatar Athanasios Karmas
Browse files

Update .gitlab-ci.yml

parent f2fd5767
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment