in src/org/apache/jackrabbit/vault/AsfCloudbeesJenkinsEnvironment.groovy [24:42]
public static String getMavenLabel(boolean isWindows, String mavenVersion) {
final String versionLabel
if (mavenVersion ==~ /\d+/) {
versionLabel = "${mavenVersion}_latest"
} else if (mavenVersion ==~ /\d+\.\d+\.\d+/) {
// make sure it
final String suffix
if (isWindows) {
suffix = "_windows"
} else {
suffix = ""
}
versionLabel = "${mavenVersion}${suffix}"
} else {
throw new IllegalArgumentException('mavenVersion must be either one integer or three integers separated by dot')
}
// valid installation names in https://cwiki.apache.org/confluence/display/INFRA/Maven+Installation+Matrix and https://github.com/apache/infrastructure-p6/blob/production/modules/jenkins_client_master/files/setmaven.groovy
return "maven_${versionLabel}"
}