[ https://issues.apache.org/jira/browse/BEAM-3055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16204402#comment-16204402 ]
Kenneth Knowles commented on BEAM-3055: --------------------------------------- I did a couple quick searches that didn't turn up anything in the short timeframe I allotted. It seems like something that should be obviously possible. Another direction is to stop wiping out .m2, which is primarily an immutable per-Jenkins-workspace cache. We currently wipe it out accidentally because of how the Jenkins git plugin is configured. Unclear whether changing that will work for us. > Retry downloading required test artifacts with a backoff when download fails. > ----------------------------------------------------------------------------- > > Key: BEAM-3055 > URL: https://issues.apache.org/jira/browse/BEAM-3055 > Project: Beam > Issue Type: Improvement > Components: testing > Reporter: Valentyn Tymofieiev > Assignee: Jason Kuster > Priority: Minor > > When Maven fails to download a required artifact for a test, the test fails. > Is it possible to configure Maven to retry the download with a backoff up to > N number of attempts? > Example test failure: > https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/15004/console > 2017-10-11T19:01:21.382 [INFO] > ------------------------------------------------------------------------ > 2017-10-11T19:01:21.382 [INFO] BUILD FAILURE > 2017-10-11T19:01:21.382 [INFO] > ------------------------------------------------------------------------ > 2017-10-11T19:01:21.383 [INFO] Total time: 55:20 min > 2017-10-11T19:01:21.383 [INFO] Finished at: 2017-10-11T19:01:21+00:00 > 2017-10-11T19:01:23.807 [INFO] Final Memory: 261M/2068M > 2017-10-11T19:01:23.807 [INFO] > ------------------------------------------------------------------------ > 2017-10-11T19:01:23.836 [ERROR] Failed to execute goal on project > beam-sdks-java-io-hcatalog: Could not resolve dependencies for project > org.apache.beam:beam-sdks-java-io-hcatalog:jar:2.2.0-SNAPSHOT: The following > artifacts could not be resolved: org.apache.hive:hive-metastore:jar:2.1.0, > javolution:javolution:jar:5.5.1: Could not transfer artifact > org.apache.hive:hive-metastore:jar:2.1.0 from/to central > (https://repo.maven.apache.org/maven2): GET request of: > org/apache/hive/hive-metastore/2.1.0/hive-metastore-2.1.0.jar from central > failed: Connection reset -> [Help 1]. -- This message was sent by Atlassian JIRA (v6.4.14#64029)