-
Bug
-
Resolution: Unresolved
-
Major
-
None
if i use a dynamic choice parameter in a job executed on a (remote) windows slave, it works.
List<String> listDir = new ArrayList<String>(); new File(System.getenv("HOMEPATH")).eachDir() { dir -> listDir.add(dir.getName() ) } return listDir.reverse()
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