[CI] Fix reset connection when downloading dependencies
Apply temporary workaround until a better solution is found
See
@@ -31,7 +31,7 @@ pipeline {
issueCommentTrigger('(?i).*(?:jenkins\\W+)?run\\W+(?:the\\W+)?(?:benchmark\\W+)?tests(?:\\W+please)?.*')
}
parameters {
- string(name: 'MAVEN_CONFIG', defaultValue: '-B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dhttps.protocols=TLSv1.2', description: 'Additional maven options.')
+ string(name: 'MAVEN_CONFIG', defaultValue: '-V -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dhttps.protocols=TLSv1.2 -Dmaven.wagon.http.retryHandler.count=3 -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false', description: 'Additional maven options.')
booleanParam(name: 'Run_As_Master_Branch', defaultValue: false, description: 'Allow to run any steps on a PR, some steps normally only run on master branch.')
booleanParam(name: 'test_ci', defaultValue: true, description: 'Enable test')
booleanParam(name: 'smoketests_ci', defaultValue: true, description: 'Enable Smoke tests')
@@ -79,11 +79,8 @@ pipeline {
deleteDir()
unstash 'source'
dir("${BASE_DIR}"){
- sh """#!/bin/bash
- set -euxo pipefail
- ./mvnw clean install -DskipTests=true -Dmaven.javadoc.skip=true
- ./mvnw license:aggregate-third-party-report -Dlicense.excludedGroups=^co\\.elastic\\.
- """
+ sh label: 'mvn install', script: "./mvnw clean install -DskipTests=true -Dmaven.javadoc.skip=true"
+ sh label: 'mvn license', script: "./mvnw license:aggregate-third-party-report -Dlicense.excludedGroups=^co\\.elastic\\."
}
stash allowEmpty: true, name: 'build', useDefaultExcludes: false
archiveArtifacts allowEmptyArchive: true,
