Does not properly create a parameter if we use a Scripted Pipeline and Scriptler script

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • 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.

            Assignee:
            Bruno P. Kinoshita
            Reporter:
            Andrew Verkhoglyad
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: