-
Improvement
-
Resolution: Fixed
-
Major
-
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.
- duplicates
-
JENKINS-41044 Unable to approve a pipeline waiting on input when permissions are specified for approvers
- Closed
- links to