Emailext token feature extension

11 views
Skip to first unread message

Divyesh Chandra

unread,
Apr 15, 2020, 5:11:04 AM4/15/20
to Jenkins Developers
Hi,

In my pipeline, multiple projects are build. When I used the FAILED_TESTS token, tests of unrelated projects are appended and sent in a single email. 
This is because FAILED_TESTS captures all the failed tests till now and fetches all of them together.

I want to capture the tests of individual projects using FAILED_TESTS. Can it be done by sending extra arguments to the token macro ?
If it is possible I will send in a PR. I am new to jenkis development.

Thank you,
Divyesh

Oleg Nenashev

unread,
Apr 15, 2020, 5:42:21 AM4/15/20
to Jenkins Developers
Hi,

It is possible in principle, and it would be a great feature. Additional parameters would do the job there, as long as the default behavior does not change.
To implement that you will need to somehow fetch this data from the JUnit Plugin metadata, so you need to define categorization rules

Best regards,
Oleg
Reply all
Reply to author
Forward
0 new messages