Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-2236

buildWithParameters fail when it receives duplicated parameter names.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Not A Defect
    • Component/s: jenkins.io
    • Labels:
      None
    • Similar Issues:

      Description

      I called using post to a Jenkins pipeline using the option http://xyz/job/abc/.../buildWithParameters?Param1=value&Param2=anotherValueParam1=anotherValue**

       

      By mistake I added 2 times the same parameter name, and the Jenkins response was invalid because of it. The error message that I received is:

       

      java.lang.IllegalArgumentException: Illegal number of parameter values for xyz: 2
      at hudson.model.SimpleParameterDefinition.createValue(SimpleParameterDefinition.java:33)
      at hudson.model.ParametersDefinitionProperty.buildWithParameters(ParametersDefinitionProperty.java:182)
      at jenkins.model.ParameterizedJobMixIn.doBuildWithParameters(ParameterizedJobMixIn.java:237)
      at jenkins.model.ParameterizedJobMixIn$ParameterizedJob.doBuildWithParameters(ParameterizedJobMixIn.java:417)
      at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)

       

       

        Attachments

          Activity

          jlccx Jose Choque created issue -
          Hide
          hlemeur Hervé Le Meur added a comment -

          This issue doesn't concern jenkins-infra.

          Show
          hlemeur Hervé Le Meur added a comment - This issue doesn't concern jenkins-infra.
          hlemeur Hervé Le Meur made changes -
          Field Original Value New Value
          Resolution Not A Defect [ 7 ]
          Status Open [ 1 ] Closed [ 6 ]

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jlccx Jose Choque
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: