You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2018/08/15 19:03:54 UTC

[maven-surefire] branch master updated: [jenkinsfile] [jdk 1.7] Could not transfer artifact ... SSLException: Received fatal alert: protocol_version

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 5fca693  [jenkinsfile] [jdk 1.7] Could not transfer artifact ... SSLException: Received fatal alert: protocol_version
5fca693 is described below

commit 5fca693937e2d0dd9927da1417df60a34cf08427
Author: Tibor17 <ti...@apache.org>
AuthorDate: Wed Aug 15 21:03:41 2018 +0200

    [jenkinsfile] [jdk 1.7] Could not transfer artifact ... SSLException: Received fatal alert: protocol_version
---
 Jenkinsfile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index c00a41e..0b6adaa 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -48,8 +48,10 @@ oses.eachWithIndex { osMapping, indexOfOs ->
             final String mvnName = jenkinsEnv.mvnFromVersion(os, maven)
             final String stageKey = "${os}-jdk${jdk}-maven${maven}"
 
+// Referenses for TLS:
+// https://central.sonatype.org/articles/2018/May/04/discontinued-support-for-tlsv11-and-below/?__hstc=31049440.ab2fd229e7f8b6176196d9f78621e1f5.1534324377408.1534324377408.1534324377408.1&__hssc=31049440.1.1534324377409&__hsfp=2729160845
             def mavenOpts = '-server -XX:+UseG1GC -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:+UseNUMA \
--Xms64m -Djava.awt.headless=true'
+-Xms64m -Djava.awt.headless=true -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2'
             if (jdk > 7) {
                 mavenOpts += ' -XX:+UseStringDeduplication'
             }