-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major
-
Component/s: active-choices-plugin
-
None
-
Environment:Windows, Jenkins version 2.504.1
Workaround found in comments down below
Â
Active Choises Reference Parameter runs this groovy script:
import static groovy.io.FileType.DIRECTORIES def users_path = new File("C:\\Windows\\SoftwareDistribution") def folders = []users_path.traverse(type: DIRECTORIES, maxDepth: 0) { Â Â if (!(it.name == "_FIRED") && !(it.name =~ /^[0-9]/)) { Â Â Â Â folders.add(it.name) Â Â } } return folders
It returns some folder names basically. There are hundreds of them in production so I used filtering for easier selection, but filtering doesn't work on Active Choises plugin version 2.8.7 and 2.8.8, however on 2.8.6 it works, so far I reverted to 2.8.6. Script still returns all the elements I expect it to, just filtering broke.
This is how it looks and what console returns:
