Quantcast

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

classic Classic list List threaded Threaded
48 messages Options
123
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
Issue Type: Bug Bug
Assignee: Slide-O-Mix
Attachments: stat.png
Components: email-ext
Created: 26/Sep/12 7:53 PM
Description:

email-ext 2.24.1, jenkins 1.483

I use static-analysis for a Maven project and all the warnings data come up empty (see attachment)

If I switch it to Freestyle project, then the data shows up.

Project: Jenkins
Priority: Major Major
Reporter: hhuynh
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
Change By: hhuynh (26/Sep/12 7:54 PM)
Description: email-ext 2.24.1, jenkins 1.483

I use static-analysis
 template  for a Maven project and all the warnings data come up empty (see attachment)

If I switch it to Freestyle project, then the data shows up. 
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: hhuynh (26/Sep/12 8:16 PM)
Description: email-ext 2.24.1, jenkins 1.483 , findbugs plugin 4.44, Static Analysis Utilities 1.47

I use static-analysis template for a Maven project and all the warnings data come up empty (see attachment)

If I switch it to Freestyle project, then the data shows up. 
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Slide-O-Mix commented on Bug JENKINS-15324

This is not an issue with email-ext, external plugins used in templates are not the realm of the email-ext plugin.

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
hhuynh commented on Bug JENKINS-15324

Thanks for the clarification. Please direct the bug to its appropriate component. My guess is the Findbugs plugin in this case

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: Slide-O-Mix (26/Sep/12 8:25 PM)
Component/s: email-ext
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: hhuynh (26/Sep/12 8:25 PM)
Component/s: findbugs
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: Ulli Hafner (26/Sep/12 8:46 PM)
Priority: Major Minor
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: Ulli Hafner (26/Sep/12 8:46 PM)
Assignee: Slide-O-Mix Ulli Hafner
Component/s: email-ext
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Ulli Hafner commented on Bug JENKINS-15324

I can't reproduce the problem. On my machine I get results even with maven. Can you please attach one of your build.xml files that are produced by the maven job?

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Ulli Hafner commented on Bug JENKINS-15324

And please also attach the template that you are using.

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
hhuynh commented on Bug JENKINS-15324

It's a little tricky to reproduce. If your build is SUCCESS/FIXED, you'll see the data. If it fails, you don't see the data. So add some Findbugs bug in your test project after a successful run and rerun that. Anyway, I'm attaching my template and job 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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: hhuynh (27/Sep/12 5:01 PM)
Attachment: config.xml
Attachment: static-analysis.jelly
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Ulli Hafner commented on Bug JENKINS-15324

Of course, there is no data when the build failed because Findbugs does not create a result Or am I missing something?

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
hhuynh commented on Bug JENKINS-15324

If you set your build to watch for new findbugs error with threshold of 0 (all priority), introducing a new findbug error into the code will fail the build. The build ran to completion, findbugs ran to completion and compared new count with old count and fail the build if it finds new error. There's findbugsXml.xml created so there should be data. How else would you know the previous findbugs count and new findbugs count and the diff if there's no data produced in the email?

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
hhuynh commented on Bug JENKINS-15324

Here's the console log of a failure build triggered by new findbug error (not a typical compile/test error). My previous build had 103 warnings. This run has 104 warnings hence the build failed.

[INFO] — findbugs-maven-plugin:2.4.0:findbugs (default-cli) @ ehcache-core —
[INFO] Fork Value is true
[java] The following classes needed for analysis were missing:
[java] org.osgi.framework.BundleActivator
[java] Warnings generated: 104
[java] Missing classes: 1
[INFO] Done FindBugs Analysis....
mojoSucceeded org.codehaus.mojo:findbugs-maven-plugin:2.4.0(default-cli)
[FINDBUGS] Finding all files that match the pattern findbugsXml.xml
[FINDBUGS] Parsing 1 files in h:\jenkins\jobs\mavenjob\workspace\target
[FINDBUGS] Successfully parsed file h:\jenkins\jobs\mavenjob\workspace\target\findbugsXml.xml of module ehcache-core with 104 warnings.
[FINDBUGS] Computing warning deltas based on reference build #1
projectSucceeded net.sf.ehcache.internal:ehcache-core:2.7.0-SNAPSHOT
sessionEnded
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43.220s
[INFO] Finished at: Thu Sep 27 09:34:04 PDT 2012
[INFO] Final Memory: 25M/94M
[INFO] ------------------------------------------------------------------------
Projects to build: [MavenProject: net.sf.ehcache.internal:ehcache-core:2.7.0-SNAPSHOT @ h:\jenkins\jobs\mavenjob\workspace\pom.xml]
[JENKINS] Archiving h:\jenkins\jobs\mavenjob\workspace\pom.xml to h:\jenkins\jobs\mavenjob\modules\net.sf.ehcache.internal$ehcache-core\builds\2012-09-27_09-33-19\archive\net.sf.ehcache.internal\ehcache-core\2.7.0-SNAPSHOT\ehcache-core-2.7.0-SNAPSHOT.pom
Waiting for Jenkins to finish collecting data
channel stopped
[ANALYSIS-COLLECTOR] Skipping publisher since build result is FAILURE
Email was triggered for: Failure
Sending email for trigger: Failure

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Ulli Hafner commented on Bug JENKINS-15324

Sorry, I thought you mean the build failed due to something else.

Can you please attach the screenshot of the result of this build? And please the build.xml (not the config.xml) of this build, too.

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Ulli Hafner commented on Bug JENKINS-15324

Can you please check if there are some other values of the instance of BuildResult are filled?

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
hhuynh commented on Bug JENKINS-15324

There's no build.xml (project is Maven not Ant). The config.xml is of the job, not Jenkins master. Here's the screen shot. I printed out action.result and it's null if the build failed.

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15324) email-ext static-analysis template show empty data for Findbugs if job is a Maven project

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
 
hhuynh edited a comment on Bug JENKINS-15324

Sorry, found the build.xml, attached. Here's the screen shot. I printed out ${action.result} and it's null if the build failed.

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
123
Loading...