Set https.protocols when running with JDK 7

This commit is contained in:
rfscholte 2018-07-01 15:07:02 +02:00
parent 0e1cc11850
commit 870d696a9b
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -92,7 +92,7 @@ for (String os in runITsOses) {
junitPublisher(ignoreAttachments: false)
]) {
String cmd = "${runITscommand} -DmavenDistro=$WORK_DIR/apache-maven-dist.zip -Dmaven.test.failure.ignore=true"
if (jdk == '7') {
if (stageId.endsWith('-jdk7')) {
// Java 7u80 has TLS 1.2 disabled by default: need to explicitly enable
cmd = "${cmd} -Dhttps.protocols=TLSv1.2"
}