maj pa11y: ajout des variables d'environnement groovy
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user