Skip to content

Commit

Permalink
Set https.protocols when running with JDK 7
Browse files Browse the repository at this point in the history
  • Loading branch information
rfscholte committed Jul 1, 2018
1 parent 0e1cc11 commit 870d696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Expand Up @@ -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"
}
Expand Down

0 comments on commit 870d696

Please sign in to comment.