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

Multi-line string seems to be broken when triggered from the pipeline.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins version: v2.89.3
    • Similar Issues:

      Description

      How to reproduce?

      1. Create a simple pipeline:

      ```
      properties([
        parameters([
          string(name: 'test', defaultValue: 'test', description: 'test')
        ]),
      ])

      build(job: "alk-test")
      ```

      2. Set a multiline string parameters for the job (e.g alk-test).

      3. Run the pipeline -> when looking at the parameters, the multi-line string (default) is now one line.

       

      I am not able to rebuild the job after that.

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Assigned to the Pipeline component for further triage

          Show
          oleg_nenashev Oleg Nenashev added a comment - Assigned to the Pipeline component for further triage
          Hide
          abayer Andrew Bayer added a comment -

          So this isn't a Pipeline-specific problem - the same thing happens with Parameterized Trigger calling a downstream freestyle build. Core doesn't seem to know what to do with a multiline string parameter that isn't submitted through the UI - the actual parameter that is available at runtime is fine, but the saved parameter info on the run is wrong.

          Show
          abayer Andrew Bayer added a comment - So this isn't a Pipeline-specific problem - the same thing happens with Parameterized Trigger calling a downstream freestyle build. Core doesn't seem to know what to do with a multiline string parameter that isn't submitted through the UI - the actual parameter that is available at runtime is fine, but the saved parameter info on the run is wrong.
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          maybe a regression
          Oleksandr Kushchak is it a new issue or have you seen it before?

          Show
          oleg_nenashev Oleg Nenashev added a comment - maybe a regression Oleksandr Kushchak is it a new issue or have you seen it before?
          Hide
          alkush21 Oleksandr Kushchak added a comment - - edited

          Oleg Nenashev I've not tried doing this before, so I can't comment on the regression.

          Show
          alkush21 Oleksandr Kushchak added a comment - - edited Oleg Nenashev  I've not tried doing this before, so I can't comment on the regression.

            People

            • Assignee:
              Unassigned
              Reporter:
              alkush21 Oleksandr Kushchak
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: