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

Accessing parameters of triggered build has strange syntax

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • core
    • Jenkins version 1.579, Linux RHEL6

      It seems that accessing parameters with build command 'Execute shell' has strange syntax when building with URL request and multiple parameters.

      For example, when I trigger my build with URL:
      http://server/job/myjob/buildWithParameters?token=TOKEN&PARA1=Value1&PARA2=Value2

      and try to echo those string parameters, I need to use the following syntax:
      echo $PARA1
      echo ${para2}

      For example this alternative doesn't work. It is echoing only blank values:
      echo ${para1}
      echo $PARA2

      This seems to be somewhat similar to this:
      https://issues.jenkins-ci.org/browse/JENKINS-16639

            Unassigned Unassigned
            kaaleppi Kaaleppi Kekkola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: