diff --git a/jenkins/Jenkinsfile b/jenkins/Jenkinsfile index 5da3da052..2f5c5d9ed 100644 --- a/jenkins/Jenkinsfile +++ b/jenkins/Jenkinsfile @@ -139,7 +139,7 @@ def sendSlackNotification(message, color) { "attachments": [ { "color": "${color}", - "text": "${message.replaceAll('"', '\\"').replaceAll('\n', '\\n')}" + "text": "${message.replaceAll('"', '\\"').replaceAll('\n', '\\\\n')}" } ] }"""