mercredi 5 juillet 2017

Fail a Jenkins build when a Taurus-run JMeter test records a failure

I've got some tests setup to run via Taurus and kicking them off in a Jenkins stage like so:

...previous stages...

stage('Load Tests'){
  dir('./tests'){
     bat "bat _testFile.yml"
  }
}

...stages to execute if Load Tests stage succeeds

I want to bail out of the whole build if any one of the iterations in any of my tests fails. But this setup, as well as wrapping in a try/catch don't work.

Aucun commentaire:

Enregistrer un commentaire