Skip to content

Commit

Permalink
Set retries to make build more stable (#160)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
normanmaurer committed May 10, 2022
1 parent f4c43df commit 0e58419
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
3 changes: 3 additions & 0 deletions .github/workflows/ci-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e58419

Please sign in to comment.