diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e927861e75b2916e4ab3e2e40e3e741939d9cdf8..afcfd1bea1f32973580114d7cb495773b4b9b075 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