-
Bug
-
Resolution: Fixed
-
Minor
-
None
Pipeline input step (https://www.jenkins.io/doc/pipeline/steps/pipeline-input-step/) multiline parameter type TextParameterDefinition is converted to single line when used at stage view popup.
Steps to reproduce:
1. For the following code:
def multiline_text = '''multiline text''' stage('simple-test') { def result = input(message: 'pipeline-input-step test', parameters: [[name: 'text_param', $class: 'TextParameterDefinition', defaultValue: multiline_text]]) echo result }
2. At the stage view the multiline text parameter is presented as single line:
3. Clicking button Proceed produces single line parameter result accordingly:
[Pipeline] echo multilinetext
Expected result:
Multiline parameter of type TextParameterDefinition sustains new line characters like it is properly supported by action Paused for Input:
(screens from Jenkins 2.346.2, Input Step Version 449.v77f0e8b_845c4)
- relates to
-
JENKINS-13916 Multiline text parameter displays as single line
-
- Reopened
-
[JENKINS-69555] pipeline-input-step converts multiline parameters to single line at Stage View
Description |
Original:
Pipeline input step ([https://www.jenkins.io/doc/pipeline/steps/pipeline-input-step/]) multiline parameter type TextParameterDefinition is converted to single line when used at stage view popup.
h4. Steps to reproduce: 1. For the following code: {code:java} def multiline_text = '''multiline text''' stage('simple-test') { def result = input(message: 'pipeline-input-step test', parameters: [[name: 'text_param', $class: 'TextParameterDefinition', defaultValue: multiline_text]]) echo result }{code} 2. At the stage view the multiline text parameter is presented as single line: !image-2022-09-08-09-35-38-107.png|width=292,height=240! 3. Clicking button Proceed produces single line parameter result accordingly: [Pipeline] echomultilinetext h4. Expected result: Multiline parameter of type TextParameterDefinition sustains new line characters like it is properly supported by action Paused for Input: !image-2022-09-08-09-37-26-246.png|width=353,height=176! |
New:
Pipeline input step ([https://www.jenkins.io/doc/pipeline/steps/pipeline-input-step/]) multiline parameter type TextParameterDefinition is converted to single line when used at stage view popup.
h4. Steps to reproduce: 1. For the following code: {code:java} def multiline_text = '''multiline text''' stage('simple-test') { def result = input(message: 'pipeline-input-step test', parameters: [[name: 'text_param', $class: 'TextParameterDefinition', defaultValue: multiline_text]]) echo result }{code} 2. At the stage view the multiline text parameter is presented as single line: !image-2022-09-08-09-35-38-107.png|width=292,height=240! 3. Clicking button Proceed produces single line parameter result accordingly: {code:java} [Pipeline] echo multilinetext {code} h4. Expected result: Multiline parameter of type TextParameterDefinition sustains new line characters like it is properly supported by action Paused for Input: !image-2022-09-08-09-37-26-246.png|width=353,height=176! |
Description |
Original:
Pipeline input step ([https://www.jenkins.io/doc/pipeline/steps/pipeline-input-step/]) multiline parameter type TextParameterDefinition is converted to single line when used at stage view popup.
h4. Steps to reproduce: 1. For the following code: {code:java} def multiline_text = '''multiline text''' stage('simple-test') { def result = input(message: 'pipeline-input-step test', parameters: [[name: 'text_param', $class: 'TextParameterDefinition', defaultValue: multiline_text]]) echo result }{code} 2. At the stage view the multiline text parameter is presented as single line: !image-2022-09-08-09-35-38-107.png|width=292,height=240! 3. Clicking button Proceed produces single line parameter result accordingly: {code:java} [Pipeline] echo multilinetext {code} h4. Expected result: Multiline parameter of type TextParameterDefinition sustains new line characters like it is properly supported by action Paused for Input: !image-2022-09-08-09-37-26-246.png|width=353,height=176! |
New:
Pipeline input step ([https://www.jenkins.io/doc/pipeline/steps/pipeline-input-step/]) multiline parameter type TextParameterDefinition is converted to single line when used at stage view popup.
h4. Steps to reproduce: 1. For the following code: {code:java} def multiline_text = '''multiline text''' stage('simple-test') { def result = input(message: 'pipeline-input-step test', parameters: [[name: 'text_param', $class: 'TextParameterDefinition', defaultValue: multiline_text]]) echo result }{code} 2. At the stage view the multiline text parameter is presented as single line: !image-2022-09-08-09-35-38-107.png|width=292,height=240! 3. Clicking button Proceed produces single line parameter result accordingly: {code:java} [Pipeline] echo multilinetext {code} h4. Expected result: Multiline parameter of type TextParameterDefinition sustains new line characters like it is properly supported by action Paused for Input: !image-2022-09-08-09-37-26-246.png|width=353,height=176! (screens from Jenkins 2.346.2) |
Description |
Original:
Pipeline input step ([https://www.jenkins.io/doc/pipeline/steps/pipeline-input-step/]) multiline parameter type TextParameterDefinition is converted to single line when used at stage view popup.
h4. Steps to reproduce: 1. For the following code: {code:java} def multiline_text = '''multiline text''' stage('simple-test') { def result = input(message: 'pipeline-input-step test', parameters: [[name: 'text_param', $class: 'TextParameterDefinition', defaultValue: multiline_text]]) echo result }{code} 2. At the stage view the multiline text parameter is presented as single line: !image-2022-09-08-09-35-38-107.png|width=292,height=240! 3. Clicking button Proceed produces single line parameter result accordingly: {code:java} [Pipeline] echo multilinetext {code} h4. Expected result: Multiline parameter of type TextParameterDefinition sustains new line characters like it is properly supported by action Paused for Input: !image-2022-09-08-09-37-26-246.png|width=353,height=176! (screens from Jenkins 2.346.2) |
New:
Pipeline input step ([https://www.jenkins.io/doc/pipeline/steps/pipeline-input-step/]) multiline parameter type TextParameterDefinition is converted to single line when used at stage view popup.
h4. Steps to reproduce: 1. For the following code: {code:java} def multiline_text = '''multiline text''' stage('simple-test') { def result = input(message: 'pipeline-input-step test', parameters: [[name: 'text_param', $class: 'TextParameterDefinition', defaultValue: multiline_text]]) echo result }{code} 2. At the stage view the multiline text parameter is presented as single line: !image-2022-09-08-09-35-38-107.png|width=292,height=240! 3. Clicking button Proceed produces single line parameter result accordingly: {code:java} [Pipeline] echo multilinetext {code} h4. Expected result: Multiline parameter of type TextParameterDefinition sustains new line characters like it is properly supported by action Paused for Input: !image-2022-09-08-09-37-26-246.png|width=353,height=176! (screens from Jenkins 2.346.2, Input Step Version 449.v77f0e8b_845c4) |
Link | New: This issue relates to JENKINS-13916 [ JENKINS-13916 ] |
Component/s | New: pipeline-stage-view-plugin [ 21139 ] | |
Component/s | Original: pipeline-input-step-plugin [ 21708 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Resolved [ 5 ] |
change merged: https://github.com/jenkinsci/pipeline-stage-view-plugin/pull/269