Success notification in Jenkins Job if any of the protractor suite fails except last
Success notification in Jenkins Job if any of the protractor suite fails except last
I have around 4 Protractor Suites which are running in Jenkins. The status of the job is decided on Suite 4. How to make the job fail if any of the suite fails?
I am using the following command in Execute shell:
#!/bin/sh
npm install
npm run e2e -- --suite="validation" --baseUrl="https://www.example.com#"
npm run e2e -- --suite="publishObject" --baseUrl="https://www.example.com"
1 Answer
1
check this feature I hope it help you failFast = true
https://jenkins.io/doc/book/pipeline/syntax/
In case of failFast = true, as soon as one of the jobs fail, the whole pipeline run will fail and won't continue running all other suites
Please add this in your answer.
– demouser123
Jul 3 at 9:30
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Please add how this feature is beneficial in OP's case.
– demouser123
Jul 3 at 9:10