Fayzan
Fayzan

Reputation: 141

Jenkins : Send email to different recipients

I want to send email notifications to different recipients when my tests fail in different folders.
Is this possible by using the Email-ext Jenkins plugin?

Upvotes: 1

Views: 3240

Answers (2)

kazerm
kazerm

Reputation: 529

You can create an environment variable for the recipient list Then use Conditional Step plugin to determine where was the failure. Inside the Conditional step, use "Inject Environment Variables" plugin to set the mailing list on each case.

Then use this environment var at the Recipient List

enter image description here

Upvotes: 1

Stan
Stan

Reputation: 3461

Yes. It's a comma separated recipient list: enter image description here

Upvotes: 0

Related Questions