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

Parameters are mixed up in parameters page when job was triggered by pipeline upstream job with build step

XMLWordPrintable

    • pipeline-build-step 2.13

      I have job job_with_parameters with several parameters:

      If I trigger job manually and go to parameters section in triggered build, I see parameters in the right order:

      If I trigger this job from another freestyle jobs using Parameterized Trigger plugin, parameters will be in the right order as well:

       

      However, when I trigger this job from pipeline job using build step, parameters are mixed up in parameters page of triggered build:

      build job: "job_with_parameters", parameters: [ string(name: "PARAMETER4", value: "value") ]
      

       

      This became a really big problem when you have jobs with more than 50 input parameters, which are logically grouped.

      This problem is also reproduced when you trigger job via ssh API. 

        1. build_with_parameters.PNG
          12 kB
          Mikhail Falaleev
        2. build_with_parameters.PNG
          12 kB
          Mikhail Falaleev
        3. freestyle-triggering.PNG
          27 kB
          Mikhail Falaleev
        4. parameters_are_mixed.PNG
          32 kB
          Mikhail Falaleev
        5. parameters_right_order.PNG
          32 kB
          Mikhail Falaleev

            rensgroothuijsen Rens Groothuijsen
            falaleevms Mikhail Falaleev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: