diff --git a/resources/com/cadoles/pa11y/run-audit.sh b/resources/com/cadoles/pa11y/run-audit.sh index dca6d8a..1318705 100644 --- a/resources/com/cadoles/pa11y/run-audit.sh +++ b/resources/com/cadoles/pa11y/run-audit.sh @@ -15,4 +15,5 @@ pa11y \ --include-warnings \ --include-notices \ --reporter "${PA11Y_REPORTER}" \ + --standard "${PA11Y_STANDARD}" \ "$PA11Y_URL" || exit 0 diff --git a/vars/pa11y.groovy b/vars/pa11y.groovy index f03400b..4f11466 100644 --- a/vars/pa11y.groovy +++ b/vars/pa11y.groovy @@ -2,6 +2,7 @@ def audit(String url, Map params = [:]) { def reporter = params.reporter ? params.reporter : 'html' def username = params.username ? params.username : ''; def password = params.password ? params.password : ''; + def standard = params.standard ? params.standard : 'WCAG2AA'; def pa11yImage = buildDockerImage() @@ -10,6 +11,7 @@ def audit(String url, Map params = [:]) { -e PA11Y_URL='${url}' -e PA11Y_USERNAME='${username}' -e PA11Y_PASSWORD='${password}' + -e PA11Y_STANDARD='${standard}' """ pa11yImage.inside(dockerArgs) {