-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
Jenkins 1.596.2, Build Timeout Plugin 1.14.1
Plugin configuration in the job:
- Abort the build if it's stuck
- Time-out strategy: No Activity (180 seconds)
- Time-out actions: Fail the build
- Post-build step: e-mail notification for each instable build
Expected result: e-mail is sent if build is failed via time-out plugin.
Actual result: no e-mail is sent.
On GitHub you asked me for the config.xml. I have no idea how to get that, I am a Jenkins user with admin rights but have no access to the host on the command line.
The end of the job output looks like this:
Build timed out (after 3 minutes). Marking the build as failed.
Build was aborted
[0mchannel stopped
Finished: FAILURE
I tried to reproduce it with a simple freestyle job, a shell script "sleep 10" and a "no activity" time-out of 3 seconds. Jenkins sends e-mails if I choose "fail the build" as action for the time-out plugin. It does not if I select "abort the build". So far, so good.
Now back to my other job, a Maven job for a multi-module project. As I said in the ticket description, the setup is basically the same, i.e. also "fail the build". The plugin does fail the build, as can be seen in the log output. But no e-mails are sent. (BTW, if the build fails due to a broken test, i.e. without a time-out, an e-mail is sent.) This is the problem. Maybe it is specific to Maven jobs if it does not happen for my freestyle dummy job. But this is just an educated guess.