-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins ver. 1.625.3
Active Choices Plug-in 1.3
Matrix (multi-configuration) projects don't have access to jenkinsProject variable in Groovy script.
Easy test:
return [jenkinsProject]
This is working on Freestyle project but not on Matrix.
- is duplicated by
-
JENKINS-39046 Active-Choice jenkinsProject variable is not available for Freestyle Multi-branch and Multi-configuration Multi-branch projects
- Resolved
- is related to
-
JENKINS-65235 groovy.lang.MissingPropertyException: No such property: jenkinsProject for class: groovy.lang.Binding
- Resolved
Workaround: def jenkinsProject = hudson.model.Hudson.instance.getItem("PROJECT_NAME")