• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Workflow 1.11
      Jenkins 1.625.2

      When triggering a parameterized job using a build step, default parameters values are not honored when explicitly setting the value of at least one parameter.

      To reproduce it:

      1. Create a parameterized Workflow job (call it "paramd-job"), with 2 string parameters: A, with default value "A" and B with default value "B" and script echo A; echo B
      2. Trigger paramd-job from a second Workflow job using: build job: 'paramd-job', parameters: [[$class: 'StringParameterValue', name: 'A', value: 'Custom value']]

      Expected: paramd-job triggered with A="Custom value" and B="B", both values printed in the build log.
      Actual: B is not defined. groovy.lang.MissingPropertyException: No such property: B for class: WorkflowScript

          [JENKINS-31897] Default parameter value is not used

          Antonio Muñiz created issue -
          Antonio Muñiz made changes -
          Assignee Original: Jesse Glick [ jglick ] New: Antonio Muñiz [ amuniz ]
          Daniel Beck made changes -
          Link New: This issue is related to JENKINS-13768 [ JENKINS-13768 ]
          Antonio Muñiz made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Antonio Muñiz made changes -
          Remote Link New: This issue links to "PR 269 (Web Link)" [ 13587 ]
          Jesse Glick made changes -
          Link New: This issue is related to SECURITY-170 [ SECURITY-170 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 167365 ] New: JNJira + In-Review [ 198170 ]
          Andrew Bayer made changes -
          Component/s New: pipeline-general [ 21692 ]
          Andrew Bayer made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Jesse Glick made changes -
          Component/s New: pipeline-build-step-plugin [ 21707 ]
          Component/s Original: pipeline [ 21692 ]

            amuniz Antonio Muñiz
            amuniz Antonio Muñiz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: