We have got test automation in Jenkins, and we would like to execute it at midnight.
But sometimes it fails, and sometimes it passes. Our idea is to execute the daily builds from 1:00 AM until it is green. How we can execute a job until it is green?
For example:
- Execute job at 1:00
- Execute job at 2:00 if the previous is green, etc.
We can run it hourly, but how is it possible to insert the condition?