Skip to content

Commit

Permalink
Set jenkins pipeline to retry tests once on failure
Browse files Browse the repository at this point in the history
The tests sometimes fail due to external issues. This change will
make the test step retry once if the first attempt fails. No other
steps/stages are set to be retried
  • Loading branch information
bcaddy committed Feb 8, 2024
1 parent d2ac33b commit 96c3bbd
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,15 @@ pipeline
{
steps
{
sh '''
source builds/run_tests.sh
setupTests -c gcc -t ${CHOLLA_MAKE_TYPE}
retry(2)
{
sh '''
source builds/run_tests.sh
setupTests -c gcc -t ${CHOLLA_MAKE_TYPE}
runTests
'''
runTests
'''
}
}
}
stage('Run Clang Tidy')
Expand Down

0 comments on commit 96c3bbd

Please sign in to comment.