You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2018/05/17 21:50:59 UTC

[maven-jenkins-lib] branch master updated: enable TLS 1.2 for Java 7

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
     new 921ad2e  enable TLS 1.2 for Java 7
921ad2e is described below

commit 921ad2e4a4c49ae73412362f9bf1ce10e23e3911
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Thu May 17 23:50:49 2018 +0200

    enable TLS 1.2 for Java 7
---
 vars/asfMavenTlpStdBuild.groovy | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/vars/asfMavenTlpStdBuild.groovy b/vars/asfMavenTlpStdBuild.groovy
index c1764f4..ca455f3 100644
--- a/vars/asfMavenTlpStdBuild.groovy
+++ b/vars/asfMavenTlpStdBuild.groovy
@@ -57,14 +57,18 @@ def call(Map params = [:]) {
         if (!first) {
           cmd += '-Dfindbugs.skip=true'
         }
+        if (jdk == '7') {
+          // Java 7u80 has TLS 1.2 disabled by default: need to explicitely enable
+          cmd += '-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2'
+        }
         cmd += 'clean'
         def branchName = "${env.BRANCH_NAME}"
         //if(branchName == "master") {
-        //  cmd += 'deploy'   
+        //  cmd += 'deploy'
         //  cmd += "-DdeployAtEnd=true"
         //} else {
-        //  cmd += 'verify'        
-        cmd += 'verify'        
+        //  cmd += 'verify'
+        cmd += 'verify'
         //} 
         def disablePublishers = !first
         first = false

-- 
To stop receiving notification emails like this one, please contact
hboutemy@apache.org.