I try to make a http request to some host and if http status code is not 200
GitLab pipeline job should fail.
How I can make GitLab job to fail?
But job succeeded.
Here is script
section of my gitlab-ci.yml
:
script:
- 'if [ $(curl -X POST -s -o stdout -w "%{http_code}" -I https://example.com) -eq 200 ]; then exit 1; fi'