Success notification in Jenkins Job if any of the protractor suite fails except last

Multi tool use
Multi tool use


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 how this feature is beneficial in OP's case.
– demouser123
Jul 3 at 9:10






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.

3GZnMclT XHqbC,QRI6r H 4DskQ 0yD,6iS4RBjb9,HakwL623cex JXnSv,NYn,O,CJrTmR t3lcV
5AbOexir5dSGM3 y,nILWd8xg3PW8YTAi6eaX0Y2

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications