[JIRA] (JENKINS-49742) Multi-line string seems to be broken when triggered from the pipeline.

5 views
Skip to first unread message

oleksandrkushchak@gmail.com (JIRA)

unread,
Feb 26, 2018, 9:05:09 AM2/26/18
to jenkinsc...@googlegroups.com
Oleksandr Kushchak created an issue
 
Jenkins / Bug JENKINS-49742
Multi-line string seems to be broken when triggered from the pipeline.
Issue Type: Bug Bug
Assignee: Oleg Nenashev
Attachments: image-2018-02-26-14-02-58-927.png, image-2018-02-26-14-03-28-739.png
Components: _unsorted
Created: 2018-02-26 14:04
Environment: Jenkins version: v2.89.3
Priority: Minor Minor
Reporter: Oleksandr Kushchak

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.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

o.v.nenashev@gmail.com (JIRA)

unread,
Feb 26, 2018, 9:09:02 AM2/26/18
to jenkinsc...@googlegroups.com
Oleg Nenashev commented on Bug JENKINS-49742
 
Re: Multi-line string seems to be broken when triggered from the pipeline.

Assigned to the Pipeline component for further triage

o.v.nenashev@gmail.com (JIRA)

unread,
Feb 26, 2018, 9:09:02 AM2/26/18
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
 
Change By: Oleg Nenashev
Component/s: pipeline
Component/s: _unsorted

o.v.nenashev@gmail.com (JIRA)

unread,
Feb 26, 2018, 9:09:03 AM2/26/18
to jenkinsc...@googlegroups.com

oleksandrkushchak@gmail.com (JIRA)

unread,
Feb 26, 2018, 2:57:02 PM2/26/18
to jenkinsc...@googlegroups.com
Oleksandr Kushchak updated an issue
Change By: Oleksandr Kushchak
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).

!image-2018-02-26-14-03-28-739.png!


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

!image-2018-02-26-14-02-58-927.png!

 

I am not able to rebuild the job after that.

andrew.bayer@gmail.com (JIRA)

unread,
Feb 27, 2018, 3:40:02 PM2/27/18
to jenkinsc...@googlegroups.com
Andrew Bayer updated an issue
Change By: Andrew Bayer
Component/s: core
Component/s: pipeline

andrew.bayer@gmail.com (JIRA)

unread,
Feb 27, 2018, 3:44:01 PM2/27/18
to jenkinsc...@googlegroups.com
Andrew Bayer commented on Bug JENKINS-49742
 
Re: Multi-line string seems to be broken when triggered from the pipeline.

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.

o.v.nenashev@gmail.com (JIRA)

unread,
Feb 27, 2018, 4:02:03 PM2/27/18
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Feb 27, 2018, 4:05:02 PM2/27/18
to jenkinsc...@googlegroups.com
Oleg Nenashev commented on Bug JENKINS-49742
 
Re: Multi-line string seems to be broken when triggered from the pipeline.

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

oleksandrkushchak@gmail.com (JIRA)

unread,
Feb 28, 2018, 12:31:02 AM2/28/18
to jenkinsc...@googlegroups.com

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

oleksandrkushchak@gmail.com (JIRA)

unread,
Feb 28, 2018, 12:31:03 AM2/28/18
to jenkinsc...@googlegroups.com
Oleksandr Kushchak edited a comment on Bug JENKINS-49742
[~oleg_nenashev] I have 've not tried doing this before, so I can't comment on the regression.

samhrncir@gmail.com (JIRA)

unread,
Feb 21, 2020, 1:40:02 PM2/21/20
to jenkinsc...@googlegroups.com
Sam Hrncir assigned an issue to Sam Hrncir
 
Change By: Sam Hrncir
Assignee: Sam Hrncir
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

samhrncir@gmail.com (JIRA)

unread,
Feb 28, 2020, 12:35:02 PM2/28/20
to jenkinsc...@googlegroups.com
Sam Hrncir commented on Bug JENKINS-49742
 
Re: Multi-line string seems to be broken when triggered from the pipeline.

I just recreated this issue as well.  It is still present.  

If anyone has a reference of where I should start looking into the root cause of this, I would appreciate it.

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

samhrncir@gmail.com (JIRA)

unread,
Apr 30, 2020, 10:40:03 AM4/30/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages