![]() |
|
|
|
|
Change By:
|
Raj vasikarla
(18/Jul/14 3:35 PM)
|
|
Description:
|
After
I've installed
the
last updates
dashboard plugin and created a new view for
the
portlet throw the next error:
{noformat} WARNING: Caught exception evaluating: it
dashboard
.
getUnstableJobs(jobs) in /. Reason: java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast
In the new view i was able
to
hudson
add a "dasbboard view" which consists of a "pipeline view" and other portlets
.
model
Things are working fine until now
.
TopLev elItem java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast
Instead of over populating my jenkins main view with too many tabs i decide
to
hudson.model.TopLevelItem at hudson.plugins.
have nested views, and within the nested
view
.
i started creating
dashboard
views
.
core
The capability of adding the pipeline view as one of the portlet is not available when i go with nested view
.
UnstableJobsPortlet.getUnstableJobs(UnstableJobsPortlet.java:44) at hudson.plugins.
The pipeline portlet
view
is only available when i go with the main view
.
dashboard.core.UnstableJobsPortlet.getUnstableJobs(UnstableJobsPortlet.java:46)
at sun.reflect.GeneratedMethodAccessor597.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) {noformat}
Seeing
Hope
the
conde and the class hierarchy
above is clear
,
I think that
if not please feel free to let me know i'll add more info to
the
correct method signature for getUnstableJobs is:
{code} public Collection<Job> getUnstableJobs(Collection<Item> allJobs) { ArrayList<Job> unstableJobs = new ArrayList<Job>();
for (Item item : allJobs) {
above
.
... }
.... } {code}
With this change I think that we avoid the error.
|
|
|
|
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
[email protected].
For more options, visit
https://groups.google.com/d/optout.