maj pa11y: ajout des variables d'environnement groovy

This commit is contained in:
2022-11-18 16:17:22 +01:00
parent 7ac1644563
commit 67b6e21093
2 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,7 @@ def audit(String url, Map params = [:]) {
def standard = params.standard ? params.standard : 'WCAG2AA';
def includeWarnings = params.includeWarnings ? params.includeWarnings : false;
def includeNotices = params.includeNotices ? params.includeNotices : false;
def cookie_value = params.cookie_value ? params.cookie_value : 'fr_FR';
def pa11yImage = buildDockerImage()
@ -16,6 +17,7 @@ def audit(String url, Map params = [:]) {
-e PA11Y_STANDARD='${standard}'
-e PA11Y_INCLUDE_WARNINGS='${includeWarnings}'
-e PA11Y_INCLUDE_NOTICES='${includeNotices}'
-e PA11Y_COOKIE='${cookie_value}'
"""
pa11yImage.inside(dockerArgs) {