This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 198736

Summary: Display warnings from a Hudson job in Task List
Product: connecteddeveloper Reporter: Jesse Glick <jglick>
Component: HudsonAssignee: Jesse Glick <jglick>
Status: RESOLVED FIXED    
Severity: normal Keywords: PLAN
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Jesse Glick 2011-05-19 15:27:47 UTC
https://builds.apache.org/hudson/job/Hadoop-Common-trunk/ for example lists compiler warnings and CheckStyle violations. You should be able to ask that these all appear in the IDE's Task List, linked to local source files.

TBD how to clear items - perhaps simply remove them when the hyperlink is activated. Also should remove items from an old build when asking to reload from the server.
Comment 1 Jesse Glick 2011-05-20 16:43:46 UTC
https://builds.apache.org/hudson/job/Ant_Nightly/ might be an even better example.
Comment 2 Jesse Glick 2011-06-02 16:33:38 UTC
According to http://sonatype.com/Services/Webinars/Presentations should support these plugins:

code analysis
findbugs
checkstyle
sonar

and maybe

warnings
violations
tasks
emma
Comment 3 Jesse Glick 2011-07-20 11:07:37 UTC
hudson.plugins.findbugs.FindBugsPublisher -> https://builds.apache.org/job/Ant_Nightly/lastSuccessfulBuild/findbugsResult/api/xml?depth=1

hudson.plugins.warnings.WarningsPublisher -> https://builds.apache.org/job/Ant_Nightly/lastSuccessfulBuild/warningsResult/api/xml?depth=1

hudson.plugins.tasks.TasksPublisher -> https://builds.apache.org/job/Ant_Nightly/lastSuccessfulBuild/tasksResult/api/xml?depth=1 (though not very useful)

These all use hudson.plugins.analysis.util.model.FileAnnotation. Unfortunately getFileName() yields an absolute path which may be tricky to translate to a workspace path, much less a source project path.


hudson.plugins.violations.ViolationsPublisher -> ? (does not seem to have any @ExportedBean's, so not usable in its current form from NB)


Working in pbranch hudson_tasklist_198736.
Comment 4 Jesse Glick 2011-07-20 19:52:43 UTC
core-main #792e7876d270
Comment 5 Quality Engineering 2011-07-21 14:34:57 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/792e7876d270
User: Jesse Glick <jglick@netbeans.org>
Log: #198736: display warnings from a Hudson job in Task List.