Hot answers tagged

2

This pipeline will run each day at 1 AM. It'll restart if the build fails. pipeline { agent any triggers { cron('0 1 * * *') } stages { stage ('Build') { when { expression { // When last build has failed !hudson.model.Result.SUCCESS.equals(currentBuild....


1

First of all, a job should always be green on the first run in my opinion. I know that it can be very difficult, but every issue should be solved. That having said, we have also some jobs that get green after 5 retries. It are selenium tests that are very brittle and we do not get the time to fix them. Once a retry was added the builds are green for a couple ...


Only top voted, non community-wiki answers of a minimum length are eligible