From 0e58419f6e9b4d5164efd351c7c85efe8582ccf7 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Tue, 10 May 2022 13:02:30 +0200 Subject: [PATCH] Set retries to make build more stable (#160) Motivation: We should set some MAVEN_OPTS related to retries etc to make the build more stable Modifications: Add MAVEN_OPTS Result: More stable builds --- .github/workflows/ci-build.yml | 5 ++++- .github/workflows/ci-deploy.yml | 3 +++ .github/workflows/ci-pr.yml | 3 +++ .github/workflows/ci-release.yml | 3 +++ .github/workflows/codeql-analysis.yml | 3 +++ 5 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index f0e060a0..c21412b5 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -25,6 +25,9 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +env: + MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryhandler.count=5 -Dmaven.wagon.httpconnectionManager.ttlSeconds=240 + jobs: build: runs-on: ubuntu-latest @@ -67,7 +70,7 @@ jobs: - uses: actions/upload-artifact@v2 if: ${{ failure() }} with: - name: target + name: build-target path: | **/target/surefire-reports/ **/hs_err*.log \ No newline at end of file diff --git a/.github/workflows/ci-deploy.yml b/.github/workflows/ci-deploy.yml index 27d58034..0cd92f7e 100644 --- a/.github/workflows/ci-deploy.yml +++ b/.github/workflows/ci-deploy.yml @@ -25,6 +25,9 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +env: + MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryhandler.count=5 -Dmaven.wagon.httpconnectionManager.ttlSeconds=240 + jobs: stage-snapshot: runs-on: ubuntu-latest diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index 2be05f61..37c08481 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -22,6 +22,9 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +env: + MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryhandler.count=5 -Dmaven.wagon.httpconnectionManager.ttlSeconds=240 + jobs: verify: runs-on: ubuntu-18.04 diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index e81f8b36..7205c8fc 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -19,6 +19,9 @@ on: # Releases can only be triggered via the action tab workflow_dispatch: +env: + MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryhandler.count=5 -Dmaven.wagon.httpconnectionManager.ttlSeconds=240 + jobs: prepare-release: runs-on: ubuntu-18.04 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 20902cb7..8d78fa5d 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -24,6 +24,9 @@ on: schedule: - cron: '40 9 * * 1' +env: + MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryhandler.count=5 -Dmaven.wagon.httpconnectionManager.ttlSeconds=240 + jobs: analyze: name: Analyze