Skip to content
Permalink
Browse files

[JENKINS-21486] Cycle monitor should display plugin long name and

version
  • Loading branch information...
Vlatombe committed Jul 28, 2016
1 parent 6bf02d5 commit d8f3bfc8ed0f88e5bff757c0eec921d6c135d5b4
@@ -1868,22 +1868,22 @@ public String getExceptionString() {

private transient volatile boolean isActive = false;

private transient volatile List<String> pluginsWithCycle;
private transient volatile List<PluginWrapper> pluginsWithCycle;

public boolean isActivated() {
if(pluginsWithCycle == null){
pluginsWithCycle = new ArrayList<String>();
pluginsWithCycle = new ArrayList<>();
for (PluginWrapper p : Jenkins.getInstance().getPluginManager().getPlugins()) {
if(p.hasCycleDependency()){
pluginsWithCycle.add(p.getShortName());
pluginsWithCycle.add(p);
isActive = true;
}
}
}
return isActive;
}

public List<String> getPluginsWithCycle() {
public List<PluginWrapper> getPluginsWithCycle() {
return pluginsWithCycle;
}
}
@@ -28,7 +28,7 @@ THE SOFTWARE.
${%PluginCycles}
<ul>
<j:forEach var="p" items="${it.pluginsWithCycle}">
<li><j:out value="${p}"/></li>
<li><j:out value="${p.longName} v${p.version}"/></li>
</j:forEach>
</ul>
</div>

0 comments on commit d8f3bfc

Please sign in to comment.
You can’t perform that action at this time.