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

pipeline-input-step converts multiline parameters to single line at Stage View

      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)

          [JENKINS-69555] pipeline-input-step converts multiline parameters to single line at Stage View

          Grzegorz Kochański created issue -
          Grzegorz Kochański made changes -
          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!
          Grzegorz Kochański made changes -
          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)
          Grzegorz Kochański made changes -
          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)
          Grzegorz Kochański made changes -
          Link New: This issue relates to JENKINS-13916 [ JENKINS-13916 ]
          Grzegorz Kochański made changes -
          Component/s New: pipeline-stage-view-plugin [ 21139 ]
          Component/s Original: pipeline-input-step-plugin [ 21708 ]
          Grzegorz Kochański made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Grzegorz Kochański made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]

          Grzegorz Kochański added a comment - change merged: https://github.com/jenkinsci/pipeline-stage-view-plugin/pull/269
          Grzegorz Kochański made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            grzegorz_kochanski Grzegorz Kochański
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: