Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-67934

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • active-choices-plugin
    • 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.

            kinow Bruno P. Kinoshita
            andrew_v Andrew Verkhoglyad
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: