-
Type:
New Feature
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: active-choices-plugin
-
None
When defining an Active Choice parameter that uses a Scriptler script inside a Jenkins pipeline, there is no option to toggle sandbox usage ("Use Groovy Sandbox" checkbox).
i.e.:
Â
properties([  parameters([   [    $class: 'CascadeChoiceParameter',    choiceType: 'PT_SINGLE_SELECT',    filterable: true,    filterLength: 1,    name: 'Test',    script: [     $class: 'ScriptlerScript',     scriptlerScriptId:'test.groovy', sandbox: false,    ],   ],  ]) ]) pipeline {  agent any  stages {   stage('Test') {    steps {     echo "Test: ${params.Test}"    }   }  } }
Â
Â
Whenever I run it, the console log shows:
WARNING: Unknown parameter(s) found for class type 'org.biouno.unochoice.model.ScriptlerScript': sandbox
If I use the UI, however, the checkbox is available for toggling sandbox:
