maj pa11y: ajout des variables d'environnement groovy
This commit is contained in:
parent
7ac1644563
commit
67b6e21093
|
@ -7,6 +7,7 @@ pipeline {
|
||||||
text(name: 'URLS', defaultValue: 'https://msedev.crous-toulouse.fr\nhttps://msedev.crous-toulouse.fr/envole/enregistrement\nhttps://msedev.crous-toulouse.fr/envole/page/faq\nhttps://msedev.crous-toulouse.fr/envole/page/?t=liens_utiles\nhttps://msedev.crous-toulouse.fr/envole/page/?t=mentions_legales\nhttps://msedev.crous-toulouse.fr/envole/message/new\nhttps://msedev.crous-toulouse.fr/envole/recuperation/email\nhttps://msedev.crous-toulouse.fr/envole/courriel/raz', description: 'Liste des URLs à tester, une par ligne')
|
text(name: 'URLS', defaultValue: 'https://msedev.crous-toulouse.fr\nhttps://msedev.crous-toulouse.fr/envole/enregistrement\nhttps://msedev.crous-toulouse.fr/envole/page/faq\nhttps://msedev.crous-toulouse.fr/envole/page/?t=liens_utiles\nhttps://msedev.crous-toulouse.fr/envole/page/?t=mentions_legales\nhttps://msedev.crous-toulouse.fr/envole/message/new\nhttps://msedev.crous-toulouse.fr/envole/recuperation/email\nhttps://msedev.crous-toulouse.fr/envole/courriel/raz', description: 'Liste des URLs à tester, une par ligne')
|
||||||
booleanParam(name: 'INCLUDE_WARNINGS', defaultValue: false, description: 'Inclure les avertissements')
|
booleanParam(name: 'INCLUDE_WARNINGS', defaultValue: false, description: 'Inclure les avertissements')
|
||||||
booleanParam(name: 'INCLUDE_NOTICES', defaultValue: false, description: 'Inclure les notifications')
|
booleanParam(name: 'INCLUDE_NOTICES', defaultValue: false, description: 'Inclure les notifications')
|
||||||
|
text(name: 'COOKIE_VALUE', defaultValue: 'mselang=fr_FR')
|
||||||
}
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
|
@ -42,6 +43,7 @@ pipeline {
|
||||||
standard: 'WCAG2AA',
|
standard: 'WCAG2AA',
|
||||||
includeNotices: params.INCLUDE_NOTICES,
|
includeNotices: params.INCLUDE_NOTICES,
|
||||||
includeWarnings: params.INCLUDE_WARNINGS,
|
includeWarnings: params.INCLUDE_WARNINGS,
|
||||||
|
cookie_value: params.COOKIE_VALUE
|
||||||
])
|
])
|
||||||
|
|
||||||
writeFile file:"./report_${count}.xml", text:report
|
writeFile file:"./report_${count}.xml", text:report
|
||||||
|
|
|
@ -5,6 +5,7 @@ def audit(String url, Map params = [:]) {
|
||||||
def standard = params.standard ? params.standard : 'WCAG2AA';
|
def standard = params.standard ? params.standard : 'WCAG2AA';
|
||||||
def includeWarnings = params.includeWarnings ? params.includeWarnings : false;
|
def includeWarnings = params.includeWarnings ? params.includeWarnings : false;
|
||||||
def includeNotices = params.includeNotices ? params.includeNotices : false;
|
def includeNotices = params.includeNotices ? params.includeNotices : false;
|
||||||
|
def cookie_value = params.cookie_value ? params.cookie_value : 'fr_FR';
|
||||||
|
|
||||||
def pa11yImage = buildDockerImage()
|
def pa11yImage = buildDockerImage()
|
||||||
|
|
||||||
|
@ -16,6 +17,7 @@ def audit(String url, Map params = [:]) {
|
||||||
-e PA11Y_STANDARD='${standard}'
|
-e PA11Y_STANDARD='${standard}'
|
||||||
-e PA11Y_INCLUDE_WARNINGS='${includeWarnings}'
|
-e PA11Y_INCLUDE_WARNINGS='${includeWarnings}'
|
||||||
-e PA11Y_INCLUDE_NOTICES='${includeNotices}'
|
-e PA11Y_INCLUDE_NOTICES='${includeNotices}'
|
||||||
|
-e PA11Y_COOKIE='${cookie_value}'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
pa11yImage.inside(dockerArgs) {
|
pa11yImage.inside(dockerArgs) {
|
||||||
|
|
Loading…
Reference in New Issue