diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 829d6d29a6c8ee85ec07c8cb8bee8c0886b56da7..7b4d9888d781a730bbd55a489b2e4706d8ee114f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,7 +28,7 @@ stages: - while true; do sleep 300; x=$(oc get pods |grep $pod|awk '{ print $3}');if [ $x != "Running" ]; then break; fi; done - oc logs jobs/simplejob${CI_PIPELINE_ID} | tee log.txt # if spack install has failed, fail the pipeline - - if [ $(cat log.txt |grep 'Error":" No module available for package'|wc -l) -gt 0 ]; then exit 1;fi; + - if [ $(cat log.txt |grep "No module available for package"|wc -l) -gt 0 ]; then exit 1;fi; # delete the job from OpenShift as we have the logs here - oc delete job simplejob${CI_PIPELINE_ID} || true tags: