[JIRA] (JENKINS-37967) dynamic choice parameter not compatible with folder + windows slave

6 views
Skip to first unread message

raphael.unique@stef.com (JIRA)

unread,
Sep 5, 2016, 11:45:05 AM9/5/16
to jenkinsc...@googlegroups.com
Raphaël UNIQUE created an issue
 
Jenkins / Bug JENKINS-37967
dynamic choice parameter not compatible with folder + windows slave
Issue Type: Bug Bug
Assignee: Unassigned
Components: dynamicparameter-plugin
Created: 2016/Sep/05 3:44 PM
Priority: Major Major
Reporter: Raphaël UNIQUE

if i use a dynamic choice parameter in a job executed on a (remote) windows slave, it works.
but if this job is in a folder (https://wiki.jenkins-ci.org/display/JENKINS/CloudBees+Folders+Plugin ), it does not work (the paramter field is empty

in the jenkins log, i can see:

sept. 05, 2016 5:41:49 PM com.seitenbau.jenkins.plugins.dynamicparameter.BaseParameterDefinition executeScript
AVERTISSEMENT: No label is assigned to project; script for parameter '' will be executed on master
sept. 05, 2016 5:41:49 PM com.seitenbau.jenkins.plugins.dynamicparameter.util.JenkinsUtils execute
GRAVE: Cannot access class path
groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.io.File#<init>.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
        [class java.lang.String]
        [class java.net.URI]
        at groovy.lang.MetaClassImpl.chooseMostSpecificParams(MetaClassImpl.java:3240)
        ...
sept. 05, 2016 5:41:49 PM com.seitenbau.jenkins.plugins.dynamicparameter.BaseParameterDefinition getScriptResultAsList
INFOS: Script parameter with name '' is not a instance of java.util.List the parameter value is : null
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

raphael.unique@stef.com (JIRA)

unread,
Sep 5, 2016, 11:46:01 AM9/5/16
to jenkinsc...@googlegroups.com
Raphaël UNIQUE updated an issue
Change By: Raphaël UNIQUE
if i use a dynamic choice parameter in a job executed on a (remote) windows slave, it works.


{code:java}
List<String> listDir = new ArrayList<String>();
new File(System.getenv("HOMEPATH")).eachDir() { dir ->  
    listDir.add(dir.getName() )
}
return listDir.reverse()
{code}

but if this job is in a folder (https://wiki.jenkins-ci.org/display/JENKINS/CloudBees+Folders+Plugin ), it does not work (the paramter field is empty

in the jenkins log, i can see:


{code:java}

sept. 05, 2016 5:41:49 PM com.seitenbau.jenkins.plugins.dynamicparameter.BaseParameterDefinition executeScript
AVERTISSEMENT: No label is assigned to project; script for parameter '' will be executed on master
sept. 05, 2016 5:41:49 PM com.seitenbau.jenkins.plugins.dynamicparameter.util.JenkinsUtils execute
GRAVE: Cannot access class path
groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.io.File#<init>.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
        [class java.lang.String]
        [class java.net.URI]
        at groovy.lang.MetaClassImpl.chooseMostSpecificParams(MetaClassImpl.java:3240)
        ...
sept. 05, 2016 5:41:49 PM com.seitenbau.jenkins.plugins.dynamicparameter.BaseParameterDefinition getScriptResultAsList
INFOS: Script parameter with name '' is not a instance of java.util.List the parameter value is : null
{code}

raphael.unique@stef.com (JIRA)

unread,
Sep 5, 2016, 11:50:03 AM9/5/16
to jenkinsc...@googlegroups.com

raphael.unique@stef.com (JIRA)

unread,
Sep 5, 2016, 11:56:03 AM9/5/16
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages