In this video, I explain how to configure options for Jenkinsfile with a declarative syntax. I show four demos of how to rotate build numbers, discard a number of builds, define numbers of retries, and how to specify a timeout.
If you want to learn more, below are the links I used with all the details from the official documentation.
Links: Jenkins options ###
https://jenkins.io/doc/book/pipeline/...
https://jenkins.io/doc/book/pipeline/...
Links: Jenkins timeout unit options ###
https://docs.oracle.com/javase/7/docs...