vendredi 25 septembre 2020

Pipeline - Get the list of test run

The pipeline of my project runs a folder with several java test classes. After the pipeline runs I would like to access to the tests that run so I could send to a notification if the test has or not failed:

finally {
if(test =='test_i_want.java')
   sendNotification([
     slackCredentialsId       : '....',
     slackChannel             : '#t...',
     message                  : The test failed/The test passed
    ])
}

Aucun commentaire:

Enregistrer un commentaire