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

The plugin stoped propagate Job params to scriptler script after upgrade to 2.7

XMLWordPrintable

      We used the plugin via DSL

      Example
        [$class: 'CascadeChoiceParameter', choiceType: 'PT_SINGLE_SELECT', name: 'HELM_CHART_VERSION', referencedParameters: 'LOAD_OLDER_VERSIONS', script: [ $class: 'ScriptlerScript', scriptlerScriptId:'somescript.groovy', parameters: [
                [name:'repo_API_URL', value: constructedRepoApiUrl] ]
                 ]]

      Inside the scriptler script we are using also some parameters from the job.
      The parametres always were propagated to the script despite the setting "Propagate Job params to script"
      After upgrading to 2.7 it sopped working

      Unfortunately I can't also find anyway how to set this setting "Propagate Job params to script" via DSL. 
      If I set the setting in GUI, it's cleared again after the job runs.

            kinow Bruno P. Kinoshita
            alexku7 Alex
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: