Add timeout to web audit pipeline

This commit is contained in:
wpetit 2019-07-24 09:46:00 +02:00
parent 02d67901c8
commit 2d26708e3b
1 changed files with 12 additions and 6 deletions

View File

@ -66,6 +66,11 @@ def call() {
description: "Patron de formatage des données POST du formulaire d'authentification (si besoin). Exemple: username=%U&password=%P",
defaultValue: ''
)
string(
name: 'auditTimeout',
description: "Délai maximum pour la réalisation de l'audit (en minutes)",
defaultValue: '60'
)
}
stages {
@ -97,7 +102,7 @@ def call() {
-e W3AF_AUTH_FORM_USERNAME_FIELD='${params.authFormUsernameField}'
-e W3AF_AUTH_FORM_PASSWORD_FIELD='${params.authFormPasswordField}'
"""
timeout(params.auditTimeout.toInteger()) {
w3afImage.inside(dockerArgs) {
sh 'mkdir -p reports'
sh 'rm -f reports/*'
@ -107,6 +112,7 @@ def call() {
}
}
}
}
stage("Check discovered vulnerabilities") {
steps {