I have problems with configuring a jenkins job that need to do the following task :
- scheduled every 30 minutes => OK
- do an update (CVS, SVN, ...) => OK
- send an email if a change is detected in the SCM repo => KO
So my job is configured as follow :
- Source Code Management : cvs root / branch / ...
- Build Triggers : Poll SCM : */30 * * * *
- Build : No buils step
- Post-build Actions : E-mail Notification
But I received emails only when the build failed and not when an update is detected.
Any hint ?
Short answer: add an email-ext trigger of type "Always" (or "Before Build" or from other triggers e.g. in list below).
jenkins email-ext plugin. https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin Read about Triggers '''By default, the only trigger configured is the "Failure" trigger. To add more triggers, select one from the dropdown, and it will be added to the list.'''
The email lists are configured in the general jenkins configuration.
This answer touches on the topic of this question: Send email to commiters from Jenkins email-ext on every build
you can try it with a little script where: