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

input step's parameter "submitterParameter" not supported

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • blueocean-plugin
    • None
    • beta18/19
    • pannonian, iapetus

      TextParameterDefinition allows the user to specify that the input field should be a "textarea" rather than a "textinput"

      I suspect this was an oversight in James's part to support this standard input type.

      Scope

      • Add support for TextParameterDefinition so that it shows up as a text area on the input screen.
      • Ensure that this also works for Pipeline parameters as well as Pipeline Input

      Original Request
      The following snippet / Jenkinsfile does currently not work with BlueOcean:

      stage('hello') {
        Map feedback = input(submitterParameter: 'submitter', message: "tell me something", parameters: [
          [$class: 'TextParameterDefinition', name: 'text', description: "enter something"]
        ])
      
        echo "Text: ${feedback.text}"
        echo "Submitter: ${feedback.submitter}"
      }
      

      BlueOcean only returns a String with the entered text instead of a Map [text: "..", submitter: ".."] (which in the above code fails with "cannot cast to Map" Exception).

      This works with the traditional Jenkins UI.

        1. 41421.png
          10 kB
          Thorsten Scherler
        2. Screen Shot 2017-01-25 at 14.22.35.png
          114 kB
          Steffen Gebert
        3. Screenshot from 2017-02-13 16-32-26.png
          9 kB
          Thorsten Scherler

            tscherler Thorsten Scherler
            stephenking Steffen Gebert
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: