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

Minor correction

parent bfb1da8c
No related branches found
No related tags found
No related merge requests found
Pipeline #3234 passed with stages
in 3 minutes and 23 seconds
......@@ -27,13 +27,13 @@ deploy-build-environment:
# create job description file
- chmod a+x create_job.sh
- ./create_job.sh $BUILD_ENV $OP $SWIFT_FILE $CI_PIPELINE_ID
- cat simplejob${CI_PIPELINE_ID}.yml
- cat simplejob.yml
# select the project in openshift
- oc project jupyterhub-int
# delete the job (if exist)
#- oc delete job simplejob || true
# start the deploy job
- oc create -f simplejob${CI_PIPELINE_ID}.yml
- 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${CI_PIPELINE_ID} -o=jsonpath='{.status}' -w && oc get job/simplejob -o=jsonpath='{.status.conditions[*].type}' | grep -i -E 'failed|complete' || echo 'Failed'
- oc logs jobs/simplejob${CI_PIPELINE_ID}
......
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