Skip to content

Commit

Permalink
set surefire.rerunFailingTestsCount=3 to address flaky UI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Aug 13, 2023
1 parent f2ee3c9 commit f49d860
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ jobs:
--batch-mode \
--show-version \
-Dtycho.disableP2Mirrors=true \
-Dsurefire.rerunFailingTestsCount=3 \
$maven_args \
${{ github.event.inputs.additional_maven_args }} \
clean verify
6 changes: 4 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ pipeline {
withMaven(maven:'apache-maven-latest', mavenLocalRepo: '$WORKSPACE/.m2/repository') {
withCredentials([string(credentialsId: 'gpg-passphrase', variable: 'KEYRING_PASSPHRASE')]) {
wrap([$class: 'Xvnc', useXauthority: true]) {
sh 'mvn clean verify \
sh '''mvn clean verify \
-Dmaven.test.failure.ignore=true \
-Psign -Dgpg.passphrase="${KEYRING_PASSPHRASE}"'
-Dsurefire.rerunFailingTestsCount=3 \
-Psign -Dgpg.passphrase="${KEYRING_PASSPHRASE}"
'''
}}}
}
post {
Expand Down

0 comments on commit f49d860

Please sign in to comment.