[JIRA] (JENKINS-41507) "Plugin usage" plugin does not report on Maven projects

4 views
Skip to first unread message

roderich.schupp@gmail.com (JIRA)

unread,
Jan 27, 2017, 5:46:01 AM1/27/17
to jenkinsc...@googlegroups.com
Roderich Schupp created an issue
 
Jenkins / Bug JENKINS-41507
"Plugin usage" plugin does not report on Maven projects
Issue Type: Bug Bug
Assignee: Unassigned
Components: plugin-usage-plugin
Created: 2017/Jan/27 10:45 AM
Environment: Jenkins 1.609.3
plugin-usage-plugin 0.3
Priority: Major Major
Reporter: Roderich Schupp

The usage information shown excludes all Maven projects:
in plugin-usage-plugin/src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/JobCollector.java informations collected with

List<Project> allItems = Jenkins.getInstance().getAllItems(Project.class);

But a "Maven project" is not (in the Java class hierarchy of Jenkins) a hudson.model.Project. It's a hudson.model.AbstractProject, though.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

roderich.schupp@gmail.com (JIRA)

unread,
Jan 27, 2017, 5:50:01 AM1/27/17
to jenkinsc...@googlegroups.com

roderich.schupp@gmail.com (JIRA)

unread,
Jan 27, 2017, 5:51:01 AM1/27/17
to jenkinsc...@googlegroups.com

roderich.schupp@gmail.com (JIRA)

unread,
Jan 27, 2017, 5:52:01 AM1/27/17
to jenkinsc...@googlegroups.com

roderich.schupp@gmail.com (JIRA)

unread,
Jan 27, 2017, 5:53:01 AM1/27/17
to jenkinsc...@googlegroups.com
Roderich Schupp edited a comment on Bug JENKINS-41507
 
Re: "Plugin usage" plugin does not report on Maven projects
possible cause of JENKINS-35159, JENKINS-30673, JENKINS-30805

scm_issue_link@java.net (JIRA)

unread,
Jan 31, 2017, 2:49:01 PM1/31/17
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: rschupp
Path:
src/main/java/org/jenkinsci/plugins/pluginusage/JobsPerPlugin.java
src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/BuildWrapperJobAnalyzer.java
src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/BuilderJobAnalyzer.java
src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/JobAnalyzer.java
src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/JobCollector.java
src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/PropertiesJobAnalyzer.java
src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/PublisherJobAnalyzer.java
src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/SCMJobAnalyzer.java
src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/TriggerJobAnalyzer.java
http://jenkins-ci.org/commit/plugin-usage-plugin/c5a849d3acec9c9095ed0c7caccc79fddd89739e
Log:
Fix https://issues.jenkins-ci.org/browse/JENKINS-41507

Problem: "Plugin usage" plugin does not report on Maven projects
... since data is only collected for items that are instances of
class hudson.model.Project. But a "Maven project" is not a Project.

Solution:

  • globally replace hudson.model.Project with hudson.model.AbstractProject
  • fix up analyzers that call methods that really only work on a Project,
    either by ignoring items that aren't Projects (BuilderJobAnalyzer)
    or using another method that works on a wider range of items
    (BuildWrapperJobAnalyzer)

scm_issue_link@java.net (JIRA)

unread,
Jan 31, 2017, 2:49:01 PM1/31/17
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: chrissy25


Path:
src/main/java/org/jenkinsci/plugins/pluginusage/JobsPerPlugin.java
src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/BuildWrapperJobAnalyzer.java
src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/BuilderJobAnalyzer.java
src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/JobAnalyzer.java
src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/JobCollector.java
src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/PropertiesJobAnalyzer.java
src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/PublisherJobAnalyzer.java
src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/SCMJobAnalyzer.java
src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/TriggerJobAnalyzer.java

froque@premium-minds.com (JIRA)

unread,
Nov 19, 2018, 9:38:02 AM11/19/18
to jenkinsc...@googlegroups.com

Version 0.4 was relased in April. This issue can be resolved/closed. 

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

froque@premium-minds.com (JIRA)

unread,
Oct 28, 2019, 8:57:03 PM10/28/19
to jenkinsc...@googlegroups.com
Filipe Roque resolved as Fixed
 
Change By: Filipe Roque
Status: Open Resolved
Resolution: Fixed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages