-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Jenkins 2.319.3
uno-choice:2.6.0
scriptler:3.4
-
-
2.6.1
When we are running this pipeline
// code placeholder properties([ parameters([ [ $class: 'ChoiceParameter', choiceType: 'PT_SINGLE_SELECT', name: 'Environment', script: [ $class: 'ScriptlerScript', isSandboxed: false, scriptlerScriptId:'Environments.groovy' ] ], ]) ])pipeline { agent any stages { stage('Build') { steps { echo "${params.Environment}" } } } }
We do not get properly configured Active choice parameter, parameter Scriptler script is not defined. It is set to Default.
If we do Active choice parameter configuration by hand, we can choice Environments.groovy script.
- is duplicated by
-
JENKINS-68066 Active Choice not working with Scriptler
-
- Fixed but Unreleased
-
-
JENKINS-68033 Scriptler problem with argument "scriptlerScriptId"
-
- Resolved
-
I've encountered this on Jenkins 2.289.3 with Active Choices 2.6.0 and Scriptler 3.4 as well. This is caused by the changes in PR #50. I'm going to see if I can figure out a way to fix it and create a PR. Currently, there does not appear to be a way to adapt a pipeline in any way to use a Scriptler script parameter.