[JIRA] [build-timeout-plugin] (JENKINS-28125) No e-mail is sent if build is aborted

2015-06-02 Thread de...@ikedam.jp (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 ikedam resolved as Won't Fix 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
It is considered as an issue of maven-plugin. 
 
 
 
 
 
 
 
 
 
 Jenkins /  JENKINS-28125 
 
 
 
  No e-mail is sent if build is aborted  
 
 
 
 
 
 
 
 
 

Change By:
 
 ikedam 
 
 
 

Status:
 
 Open Resolved 
 
 
 

Resolution:
 
 Won't Fix 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [build-timeout-plugin] (JENKINS-28125) No e-mail is sent if build is aborted

2015-04-30 Thread de...@ikedam.jp (JIRA)














































ikedam
 commented on  JENKINS-28125


No e-mail is sent if build is aborted















Build-timeout plugin stops a build and sets its result to FAILURE using Jenkins core API.
http://javadoc.jenkins-ci.org/hudson/model/Executor.html#interrupt(hudson.model.Result)

It can be a problem of maven-plugin that a build result gets ABORTED even when it is interrupted with Executor#interrupt(FAILURE).
You may file an issue for that.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [build-timeout-plugin] (JENKINS-28125) No e-mail is sent if build is aborted

2015-04-29 Thread de...@ikedam.jp (JIRA)














































ikedam
 commented on  JENKINS-28125


No e-mail is sent if build is aborted















> A MavenModuleSetBuild doesn't update its result from "aborted" to "failure" till the build completes.

I found that the build result isn't updated even after the build completes.
This happens in the following way:

	The result of the MavenModuleSetBuild gets the worst one of the internal result of the MavenModuleSetBuild (this is set to "failure" by build-tiemout plugin) and the results of build of its modules (this is set to "aborted" and not set to "failure" by build-timeout plugin as build-timeout plugin doesn't know about modules).
	"aborted" is worse than "failure". In Jenkins, build results are treated as SUCCESS > UNSTABLE > FAILURE > NOT_BUILT > ABORTED.



> What do you suggest concerning this problem with the Maven plugin?

Sorry, but I don't know... That's a really complicated problem.


	You may request the fix to the maintainer of maven-plugin. Though, it might be not considered as a bug as maven-plugin looks work in a reasonable way as described above.
	You may request an option to send a mail even for aborted builds to mailer-plugin.
	There looks nothing build-timeout plugin can do though I have further investigation.






























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [build-timeout-plugin] (JENKINS-28125) No e-mail is sent if build is aborted

2015-04-28 Thread alexan...@kriegisch.name (JIRA)














































Alexander Kriegisch
 commented on  JENKINS-28125


No e-mail is sent if build is aborted















@ikedam: I am just clarifying if it is okay for our admin to install E-mail-ext.

What do you suggest concerning this problem with the Maven plugin? Should I file a request to the maintainer? Or is it rather a core e-mail problem? I am unsure where to address this problem, I just know that I strongly prefer fixes to work-arounds.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [build-timeout-plugin] (JENKINS-28125) No e-mail is sent if build is aborted

2015-04-28 Thread alexan...@kriegisch.name (JIRA)














































Alexander Kriegisch
 updated  JENKINS-28125


No e-mail is sent if build is aborted
















The config.xml (sensitive data x-ed out) you requested





Change By:


Alexander Kriegisch
(29/Apr/15 6:02 AM)




Attachment:


config.xml





Attachment:


config.xml



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [build-timeout-plugin] (JENKINS-28125) No e-mail is sent if build is aborted

2015-04-28 Thread de...@ikedam.jp (JIRA)














































ikedam
 commented on  JENKINS-28125


No e-mail is sent if build is aborted















That reproduced in my environment.

A MavenModuleSetBuild doesn't update its result from "aborted" to "failure" till the build completes.
This prevents E-mail Notification sending a mail, as the result isn't failure at that time.

Please try email-ext plugin, which allows you configure to send a mail also for aborted builds.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [build-timeout-plugin] (JENKINS-28125) No e-mail is sent if build is aborted

2015-04-28 Thread de...@ikedam.jp (JIRA)














































ikedam
 commented on  JENKINS-28125


No e-mail is sent if build is aborted















Let me see.
You can't use E-mail Notification in Post-build actions with maven project.
Instead, you have E-mail Notification in Build Settings, right?
It may behave in the way different from that of free-style projects.

You may try Email-ext plugin, which should behave as free-style projects.

You can get config.xml with http://(jenkins-base-uri)/job/(project name)/config.xml.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [build-timeout-plugin] (JENKINS-28125) No e-mail is sent if build is aborted

2015-04-28 Thread alexan...@kriegisch.name (JIRA)












































  
Alexander Kriegisch
 edited a comment on  JENKINS-28125


No e-mail is sent if build is aborted
















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.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [build-timeout-plugin] (JENKINS-28125) No e-mail is sent if build is aborted

2015-04-28 Thread alexan...@kriegisch.name (JIRA)












































  
Alexander Kriegisch
 edited a comment on  JENKINS-28125


No e-mail is sent if build is aborted
















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 regularly, i.e. without a time-out, e-mails are 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 en educated guess.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [build-timeout-plugin] (JENKINS-28125) No e-mail is sent if build is aborted

2015-04-28 Thread alexan...@kriegisch.name (JIRA)














































Alexander Kriegisch
 commented on  JENKINS-28125


No e-mail is sent if build is aborted















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 fauil the build, as can be seen in the log output. But no e-mails are 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 en educated guess.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [build-timeout-plugin] (JENKINS-28125) No e-mail is sent if build is aborted

2015-04-28 Thread alexan...@kriegisch.name (JIRA)














































Alexander Kriegisch
 created  JENKINS-28125


No e-mail is sent if build is aborted















Issue Type:


Bug



Assignee:


Kohsuke Kawaguchi



Components:


build-timeout-plugin



Created:


28/Apr/15 6:58 AM



Description:


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




Environment:


Jenkins 1.596.2, Build Timeout Plugin 1.14.1




Project:


Jenkins



Priority:


Major



Reporter:


Alexander Kriegisch

























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.