From c6f1a2a2ef3b8a062fdfa2fc1d26de56ccc19176 Mon Sep 17 00:00:00 2001 From: William Petit Date: Thu, 26 Dec 2019 13:50:00 +0100 Subject: [PATCH] =?UTF-8?q?w3af:=20injection=20de=20BUILD=5FUSER=5FID=20en?= =?UTF-8?q?=20cas=20d'=C3=A9chec=20du=20pipeline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vars/audit.groovy | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/vars/audit.groovy b/vars/audit.groovy index c5437d6..f72d3a9 100644 --- a/vars/audit.groovy +++ b/vars/audit.groovy @@ -167,17 +167,19 @@ def call() { ] } failure { - rocketSend ( - avatar: 'https://jenkins.cadol.es/static/b5f67753/images/headshot.png', - message: """ - Le test de sécurité pour `${params.targetUrl}` a échoué: - - [Voir le job](${env.RUN_DISPLAY_URL}) - - @${env.BUILD_USER_ID ? env.BUILD_USER_ID : 'here'} - """.stripIndent(), - rawMessage: true - ) + wrap([$class: 'BuildUser']) { + rocketSend ( + avatar: 'https://jenkins.cadol.es/static/b5f67753/images/headshot.png', + message: """ + Le test de sécurité pour `${params.targetUrl}` a échoué: + + [Voir le job](${env.RUN_DISPLAY_URL}) + + @${env.BUILD_USER_ID ? env.BUILD_USER_ID : 'here'} + """.stripIndent(), + rawMessage: true + ) + } } }