emailext behavior question

14 views
Skip to first unread message

Richard Ginga

unread,
Apr 4, 2017, 4:10:28 PM4/4/17
to jenkins...@googlegroups.com
Why does the following pipeline produce an email with no embedded CR. This is the result email body:

Test message: exmaple of carriage returns

This is the pipeline:

stage ('Email changes since last successful client build') {
    node('old_master') {

            def qaRequests = "exmaple of \n\n carriage returns \n\n"
            echo qaRequests

            def emailTo =  'rgi...@disruptorbeam.com'
            def emailBody = " Test message:\n\n${qaRequests}\n\n"
            emailext recipientProviders: [[$class: 'RequesterRecipientProvider']], to: emailTo, body: emailBody, subject: 'msg body tests'
        }
    }    


--
Dick Ginga
Build Engineer

Reply all
Reply to author
Forward
0 new messages