'Force stage in build to fail if it takes too less time in Jenkins Pipeline
I saw that theres an option to force a Stage to fail if it takes too much time to run, but my question is if theres an option to force it to fail if it runs less than a certain amount of time?
I need to run tests over some code that a programmer wrote, and I know that it must run for at least 3 hours in order to pass. The problem is that he wrote in the code that if theres an error in it, it fails but return success and the Stage ends in few second and marked as success.
I want to make the stage fail if it runs only few seconds.
Thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
