This is an automated email from the ASF dual-hosted git repository.
rfscholte pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push:
new 5514aa7 Set https.protocols when running with JDK 7
5514aa7 is described below
commit 5514aa7dc4abd6d6000c549394e1510c1b92d6bb
Author: rfscholte <[email protected]>
AuthorDate: Sun Jul 1 01:07:16 2018 +0200
Set https.protocols when running with JDK 7
---
Jenkinsfile | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 464fecc..c5f7b1e 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -91,10 +91,16 @@ for (String os in runITsOses) {
withMaven(jdk: jdkName, maven: mvnName,
mavenLocalRepo:"${WORK_DIR}/it-local-repo", options:[
junitPublisher(ignoreAttachments: false)
]) {
+ def cmd = "${runITscommand}
-DmavenDistro=$WORK_DIR/apache-maven-dist.zip -Dmaven.test.failure.ignore=true"
+ if (jdk == '7') {
+ // Java 7u80 has TLS 1.2 disabled by default:
need to explicitely enable
+ cmd += ' -Dhttps.protocols=TLSv1.2'
+ }
+
if (isUnix()) {
- sh "${runITscommand}
-DmavenDistro=$WORK_DIR/apache-maven-dist.zip -Dmaven.test.failure.ignore=true"
+ sh "${cmd}"
} else {
- bat "${runITscommand}
-DmavenDistro=$WORK_DIR/apache-maven-dist.zip -Dmaven.test.failure.ignore=true"
+ bat "${cmd}"
}
}
deleteDir() // clean up after ourselves to reduce disk
space