-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
jenkins 2.176.3
pipeline-stage-view 2.12
We use TextParameterDefinition to obtain a commit message for the deployment stage. The following code is used to obtain the message
stage ('Approval (Dev)') { milestone 1 timeout(time:5, unit:'DAYS') { commitMessage = input (id: 'userInput', message: "Approve build for Dev?", parameters: [ [$class: 'TextParameterDefinition', defaultValue: """${commitMessage}""", description: 'Change Summary', name: 'comment'], ]) } milestone 2 deploymentApproved = true }
TextParameterDefinition is supposed to produce a multi-line input field, but instead, single-line text input is shown - resulting in all newline characters being ignored and the entire commit message being "smushed" into a single line:
Note that the same field is shown correctly in Blue Ocean UI:
[JENKINS-60160] Text Parameter input field displayed as single string
Attachment | New: image-2019-11-13-17-19-08-841.png [ 49504 ] | |
Description |
Original:
We use TextParameterDefinition to obtain a commit message for the deployment stage. The following code is used to obtain the message {code} stage ('Approval (Dev)') { milestone 1 timeout(time:5, unit:'DAYS') { commitMessage = input (id: 'userInput', message: "Approve build for Dev?", parameters: [ [$class: 'TextParameterDefinition', defaultValue: """${commitMessage}""", description: 'Change Summary', name: 'comment'], ]) } milestone 2 deploymentApproved = true } {code} TextParameterDefinition is supposed to produce a multi-line input field, but instead, single-line text input is shown - resulting in all newline characters being ignored and the entire commit message being "smushed" into a single line: !image-2019-11-13-17-17-38-448.png! Note that the same field is shown correctly in Blue Ocean UI: !image-2019-11-13-17-16-37-752.png! |
New:
We use TextParameterDefinition to obtain a commit message for the deployment stage. The following code is used to obtain the message {code:java} stage ('Approval (Dev)') { milestone 1 timeout(time:5, unit:'DAYS') { commitMessage = input (id: 'userInput', message: "Approve build for Dev?", parameters: [ [$class: 'TextParameterDefinition', defaultValue: """${commitMessage}""", description: 'Change Summary', name: 'comment'], ]) } milestone 2 deploymentApproved = true } {code} TextParameterDefinition is supposed to produce a multi-line input field, but instead, single-line text input is shown - resulting in all newline characters being ignored and the entire commit message being "smushed" into a single line: !image-2019-11-13-17-19-08-841.png! Note that the same field is shown correctly in Blue Ocean UI: !image-2019-11-13-17-16-37-752.png! |
Attachment | Original: image-2019-11-13-17-14-35-178.png [ 49503 ] |
Assignee | Original: Sam Van Oort [ svanoort ] |
Attachment | New: Screen Shot 2020-05-11 at 11.29.26 PM.png [ 51184 ] |
Ping?