From 5b71efd6fbfb37e7a2eaf345f1b09352efa42636 Mon Sep 17 00:00:00 2001 From: Dave Lago Date: Wed, 5 Jan 2022 07:18:51 -0500 Subject: [PATCH] Fix to prevent timeouts in GitHub actions (#1554) Fix to prevent timeouts in GitHub actions Fix to prevent timeouts in GitHub actions Cherry-pick from 07be53e Signed-off-by: Dave Lago --- .github/workflows/cd.yml | 3 +++ .github/workflows/ci.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 42d3b6b519..486eea6a27 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -5,6 +5,9 @@ on: tags: - '*' +env: + MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 + jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6a308d9ca..4c033d7802 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,9 @@ on: - main - opendistro-* +env: + MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 + jobs: build: name: build