diff --git a/scripts/jenkins/docs.groovy b/scripts/jenkins/docs.groovy
index 1b6d51a8863275d28055e3f9f43b745a99851de6..c3129e1758e32f6fb5e5f70786e1640b625da7f9 100644
--- a/scripts/jenkins/docs.groovy
+++ b/scripts/jenkins/docs.groovy
@@ -25,9 +25,9 @@ stage('Reports (Docs)') {
         keepAll: true, reportDir: 'build/docs', reportFiles: 'index.html',
         reportName: 'Doxygen'])
     step([$class: 'WarningsPublisher', canResolveRelativePaths: false,
-        messagesPattern:
-            '.*DOT_GRAPH_MAX_NODES. ' +
-            '.*potential recursive class relation.*',
+        messagesPattern: """
+            .*DOT_GRAPH_MAX_NODES.
+            .*potential recursive class relation.*""",
         parserConfigurations: [[parserName: 'Doxygen', pattern:
         'build/DoxygenWarnings.log']], unstableTotalAll: '0'])
 }