[JIRA] (JENKINS-39976) pipeline build failed mail - missing line break

24 views
Skip to first unread message

roman.pickl@fluidtime.com (JIRA)

unread,
Nov 23, 2016, 10:16:01 AM11/23/16
to jenkinsc...@googlegroups.com
Roman Pickl created an issue
 
Jenkins / Improvement JENKINS-39976
pipeline build failed mail - missing line break
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: mailer-plugin, pipeline
Created: 2016/Nov/23 3:15 PM
Environment: jenkins 2.19.3
Mailer plugin 1.18
Priority: Minor Minor
Reporter: Roman Pickl

when catching a build failure and sending an email via:

catch (err) {
node ('Client-Slave'){
echo "Failed: $

{err}

"
currentBuild.result = 'FAILURE'
step([$class: 'Mailer', recipients: 'exa...@example.com, recip...@example.com'])
}
}

the mail is send as:
[...]
X-Jenkins-Job: example_pipeline
X-Jenkins-Result: FAILURE

https://jenkins.example.com/blue/organizations/jenkins/example_pipeline/detail/example_pipeline/21/------------------------------------------
[...truncated 25 lines...]
[...]

it would be better to send it with a line break after the url, as the ----- are treated as part of the url by some mail clients:
[...]
X-Jenkins-Job: example_pipeline
X-Jenkins-Result: FAILURE

https://jenkins.example.com/blue/organizations/jenkins/example_pipeline/detail/example_pipeline/21/
------------------------------------------
[...truncated 25 lines...]
[...]

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

leufkes@gfi.ihk.de (JIRA)

unread,
Dec 6, 2016, 5:12:01 AM12/6/16
to jenkinsc...@googlegroups.com

nikolaus.madalinski@gfi.ihk.de (JIRA)

unread,
Dec 6, 2016, 5:14:01 AM12/6/16
to jenkinsc...@googlegroups.com

Same bug here. The generated url in mail ist broken

jglick@cloudbees.com (JIRA)

unread,
Jan 31, 2017, 10:12:01 AM1/31/17
to jenkinsc...@googlegroups.com
Jesse Glick updated an issue
 
Jenkins / Bug JENKINS-39976

Is this actually Pipeline-specific?

Change By: Jesse Glick
Issue Type: Improvement Bug
Component/s: pipeline
Labels: pipeline
when catching a build failure and sending an email via:

{code}
catch (err) {
    node ('Client-Slave'){
        echo "Failed: ${err}"
        currentBuild.result = 'FAILURE'
        step([$class: 'Mailer', recipients: 'exa...@example.com, recip...@example.com'])
    }
}
{code}

the mail is send as:

{code:none}
[...]
X-Jenkins-Job: example_pipeline
X-Jenkins-Result: FAILURE

https://jenkins.example.com/blue/organizations/jenkins/example_pipeline/detail/example_pipeline/21/------------------------------------------
[...truncated 25 lines...]
[...]
{code}

it would be better to send it with a line break after the url, as the ----- are treated as part of the url by some mail clients:

{code:none}
[...]
X-Jenkins-Job: example_pipeline
X-Jenkins-Result: FAILURE

https://jenkins.example.com/blue/organizations/jenkins/example_pipeline/detail/example_pipeline/21/
------------------------------------------
[...truncated 25 lines...]
[...]

{code}

jglick@cloudbees.com (JIRA)

unread,
Jan 31, 2017, 10:16:01 AM1/31/17
to jenkinsc...@googlegroups.com

adrien.lecharpentier@gmail.com (JIRA)

unread,
Feb 12, 2019, 10:23:02 AM2/12/19
to jenkinsc...@googlegroups.com

Roman Pickl are you sure it's fixed? I was about to integrate the PR in mailer plugin but if you say it's not a problem anymore.. I'm perplexed now.

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

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

unread,
Sep 3, 2019, 6:12:03 AM9/3/19
to jenkinsc...@googlegroups.com
Oleg Nenashev reopened an issue
 
Change By: Oleg Nenashev
Resolution: Cannot Reproduce
Status: Resolved Reopened

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

unread,
Sep 3, 2019, 6:14:02 AM9/3/19
to jenkinsc...@googlegroups.com
Oleg Nenashev commented on Bug JENKINS-39976
 
Re: pipeline build failed mail - missing line break

I do not see changes which would have fixed that. The PR is trivial, so probably we should integrate it and move on

jglick@cloudbees.com (JIRA)

unread,
Sep 3, 2019, 9:47:05 AM9/3/19
to jenkinsc...@googlegroups.com
Jesse Glick resolved as Fixed
 
Change By: Jesse Glick
Status: Reopened Resolved
Resolution: Fixed
Released As: 1.26
Reply all
Reply to author
Forward
0 new messages