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

choice parameter no longer supports choices in pipeline

    Details

    • Similar Issues:
    • Released As:
      1.17

      Description

      Current releases of all plugins, notably Struct 1.16, result in the choice parameter no longer having a legal choices argument. https://github.com/jenkinsci/structs-plugin/pull/41 perhaps?

      Reproduce: docker run -p 8080:8080 jenkins/jenkins:2.138.1, install workflow-aggregator only, create a Pipeline and consult the Snippet Generator.

      Originally reported on IRC by ctcpme (Steve Bouché):

      [2018-10-05 07:58:19]  <ctcpme>		i just did an upgrade to 2.138.1, and updated plugins.  i'm getting an error "WorkflowScript: 80: Invalid parameter "choices", did you mean "name"?" with choice parameters in my pipelines.  like pipeline { parameters { choice(name: "test", choices: "1\n2", description: "test") } }.  anyone have a clue what could cause this?
      [2018-10-05 08:02:23]  <@danielbeck>		ctcpme are you on structs plugin 1.16?
      [2018-10-05 08:02:38]  <ctcpme>		yes
      [2018-10-05 08:03:51]  <@danielbeck>		ctcpme is there a way for you to ignore the error, if so, what happens?
      [2018-10-05 08:04:41]  <ctcpme>		i don't believe so.  i get a MultipleCompilationErrorsException and the job immediately fails.	 

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            Regression caused by trying to work around an evil effect of the fix of JENKINS-26143.

            Show
            jglick Jesse Glick added a comment - Regression caused by trying to work around an evil effect of the fix of JENKINS-26143 .
            Hide
            siigna Steve Bouché added a comment -

            Downgrading to structs 1.15 resolves the error.

            Show
            siigna Steve Bouché added a comment - Downgrading to structs 1.15 resolves the error.

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                danielbeck Daniel Beck
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: