Reputation: 3004
In Jenkins, I am running two tests in only one job. One is a smoke test and the other is a regression test.
When the smoke test is passed, then the regression test starts to run.
Both tests are done in only one build one after another.
Now I want to send an email when the smoke test is passed -- in other words, before the regression test starts.
For infomation, if the smoke test pass, than in the Jenkins console
Smoke Test:PASSED
is shown.
I have tried email-ext plugin as
Post build action
and it is sending an email after completing the total build -- in other words, after completing the regression test.
Please help me to find a solution.
Upvotes: 1
Views: 652
Reputation: 10382
One solution is described here: Jenkins: Sending email based on each build step result in same Jenkins Job
But I did some tests and I'm not sure it will solve your pb.
There is another solution using the Jenkins Workflow plugin.
With this plugin, you design your job with a DSL and you can easily add a build step to send an email: https://www.cloudbees.com/blog/mail-step-jenkins-workflow
Upvotes: 1