Jenkins · Steps and credentials
Retry and time-limit a step
Retry a flaky step and give up if it takes too long.
retry(3) {
timeout(time: 5, unit: 'MINUTES') {
sh './flaky-integration-test.sh'
}
}
Official Jenkins documentation
Jenkins · Steps and credentials
Retry a flaky step and give up if it takes too long.
retry(3) {
timeout(time: 5, unit: 'MINUTES') {
sh './flaky-integration-test.sh'
}
}
Official Jenkins documentation
Was this page helpful?