It is a wrong items handling in xfpanel plugin.
Currently, the plugin passes Jenkins Items to a method, which takes only Jobs.

https://github.com/jenkinsci/xfpanel-plugin/blob/cfeaa9101e1634e795dd885368797a563c8c2ff9/src/main/resources/maps/hudson/plugin/xfpanel/XFPanelView/configure-entries.jelly

<j:invoke method="getPrioritySortedJobs" var="prioJobs" on="${it}">
  <j:arg type="java.util.Collection" value="${app.items}" />
</j:invoke>

https://github.com/jenkinsci/xfpanel-plugin/blob/cfeaa9101e1634e795dd885368797a563c8c2ff9/src/main/java/maps/hudson/plugin/xfpanel/XFPanelView.java

    public Collection<Job<?, ?>> getPrioritySortedJobs(Collection<Job<?, ?>> jobs) {
        if (jobs != null) {
            List<Job<?, ?>> sortedJobs = new ArrayList<Job<?, ?>>();
            Map<Integer, Job<?, ?>> jobMap = new HashMap<Integer, Job<?, ?>>();

            int priority = 0, added = 0;
            if (priorityPerJob != null) {

                // Set elements
EXCEPTION(386) ==>  for (Job<?, ?> job: jobs) {
               ....

Change By: Oleg Nenashev (21/Jun/14 6:58 AM)
Assignee: Jesse Glick Julien RENAUT
Component/s: cloudbees-folder
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.

Reply via email to