Is there a way to check the jenkins output for a job and if the string exist make the job succeed otherwise fail? Is there a way to check the jenkins output for a job and if the string exist make the job succeed otherwise fail? jenkins jenkins

Is there a way to check the jenkins output for a job and if the string exist make the job succeed otherwise fail?


Good Topic Choice JOHN SMITH.I also have the similar questionHave you tried to handle it like this?

try { stage('some-stage') { //do something } } catch (Exception e) { echo "Stage failed, but we continue" } try { stage("some-other-stage") { // do something } } catch (Exception e) { echo "Stage failed, but we still continue" }