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

Remotely triggered build with parameters failing with extended choice parameters

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Jenkins 1.500
      Extended Choice Parameter 0.26

      I have converted one of the parameters in my project from a statically defined Choice dropdown box to an Extended Choice Parameter in Single select mode. When I execute builds from the web interface everything works fine. When I try to remotely trigger a build using the HTTP GET interface I get an error and my extended choice parameter does not appear in the list of parameters for the build.

      I did notice that I'm running one minor release behind, but there was nothing in the diff from 0.26 to 0.27 that made me think it could impact this issue. I will be upgrading as soon as there are not currently executing jobs.

          [JENKINS-17262] Remotely triggered build with parameters failing with extended choice parameters

          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/dee8e972bd0460255942a612cdbc76aba4069803
          Log:
          JENKINS-17262

          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/dee8e972bd0460255942a612cdbc76aba4069803 Log: JENKINS-17262

          when I use remote trigger by using extended choice parameters plugin, I can't assign a value which not in the first value of the list, for

          e.g:
          the extended choice list is(param):
          a
          b
          c
          d

          "a" is the first value, when I use:
          curl -s www.xxx.com/joba/buildWithParameters?token=SecretOnlyForjoba\&param=b"

          coz b is not the first value of the list, so the job can't recognized it. so job is fail... pls help to check whether this is a bug or not.

          Bao Xiaopan(Bob) added a comment - when I use remote trigger by using extended choice parameters plugin, I can't assign a value which not in the first value of the list, for e.g: the extended choice list is(param): a b c d "a" is the first value, when I use: curl -s www.xxx.com/joba/buildWithParameters?token=SecretOnlyForjoba\&param=b" coz b is not the first value of the list, so the job can't recognized it. so job is fail... pls help to check whether this is a bug or not.

          vimil added a comment -

          Can you confirm you're using v0.28 of the plugin?

          vimil added a comment - Can you confirm you're using v0.28 of the plugin?

          amirkibbar added a comment -

          just ran into this issue, here's the response from the jenkins cli when activating a build with a choice parameter:

          CLI parameter submission is not supported for the class com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition type. Please file a bug report for this

          I'm using Jenkins 1.555 and Extended Choice Parameter Plug-In 0.30

          amirkibbar added a comment - just ran into this issue, here's the response from the jenkins cli when activating a build with a choice parameter: CLI parameter submission is not supported for the class com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition type. Please file a bug report for this I'm using Jenkins 1.555 and Extended Choice Parameter Plug-In 0.30

            vimil vimil
            skruger Shaun Kruger
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: