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

Extended choice parameter plugin does not pass parameter if called via a buildWithParameters URL request

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Jenkins 1.480.2, Extended-choice-parameter 0.23

      If you set up a job with an extended-choice-parameter which simply echoes the value of the parameter, and call it directly from the Jenkins UI, the parameter is correct.
      If you call the same thing using a URL request, that parameter is blank, both in the parameters when you look at the job after the fact, and in the environment when the job runs.
      It does work if you call it using a build.properties file from an upstream job.

      An example usage of the URL call is this:
      wget -O - "http://hudsonmaster1.uk.nds.com:8080/hudson/job/TEST_EXTENDED/buildWithParameters?token=hudson-ci&FIRST=MyTest&SECOND=XXX"

      TEST_EXTENDED is my test job with FIRST as a normal String parameter, SECOND is an extended choice parameter where XXX is a valid option.

      All the job does is this, as a build step:
      echo $FIRST
      echo $SECOND

          [JENKINS-16639] Extended choice parameter plugin does not pass parameter if called via a buildWithParameters URL request

          Code changed in jenkins
          User: vimil
          Path:
          src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java
          http://jenkins-ci.org/commit/extended-choice-parameter-plugin/e85475dfa791d6dc4bfdeb4bc99a090f5648a9c6
          Log:
          fixing issue JENKINS-16639

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: vimil Path: src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java http://jenkins-ci.org/commit/extended-choice-parameter-plugin/e85475dfa791d6dc4bfdeb4bc99a090f5648a9c6 Log: fixing issue JENKINS-16639

            vimil vimil
            r_kibble Robert Kibble
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: