w3af: injection de BUILD_USER_ID en cas d'échec du pipeline

This commit is contained in:
wpetit 2019-12-26 13:50:00 +01:00
parent 161fe3092c
commit c6f1a2a2ef
1 changed files with 13 additions and 11 deletions

View File

@ -167,17 +167,19 @@ def call() {
] ]
} }
failure { failure {
rocketSend ( wrap([$class: 'BuildUser']) {
avatar: 'https://jenkins.cadol.es/static/b5f67753/images/headshot.png', rocketSend (
message: """ avatar: 'https://jenkins.cadol.es/static/b5f67753/images/headshot.png',
Le test de sécurité pour `${params.targetUrl}` a échoué: message: """
Le test de sécurité pour `${params.targetUrl}` a échoué:
[Voir le job](${env.RUN_DISPLAY_URL})
[Voir le job](${env.RUN_DISPLAY_URL})
@${env.BUILD_USER_ID ? env.BUILD_USER_ID : 'here'}
""".stripIndent(), @${env.BUILD_USER_ID ? env.BUILD_USER_ID : 'here'}
rawMessage: true """.stripIndent(),
) rawMessage: true
)
}
} }
} }