Jenkins has a built-in timeout feature that can be used to mark a build as failed if it takes too long to complete. Here are the steps to set a timeout and mark the build as failed once the timeout is reached:
timeout 60 || exit 1
This will cause the build to fail if it takes more than 60 seconds to complete.
Now, if the build takes longer than 60 seconds, it will be marked as failed and the status will change to "FAILED".
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-11-16 11:00:00 +0000
Seen: 8 times
Last updated: Oct 05 '22
How can you obtain the sha1 of the most recent commit in a git repository using C#?
How can I deal with Expression.Error related to a column in Power Query?
How can you implement pagination in Oracle for the LISTAGG() function?
What is the process for implementing a FutureBuilder on an OnTap function in Flutter?
How can we require users to be logged in before they can access the root folders in WordPress?
In SCSS, what is the method for grouping and reusing a set of classes and styles?
How can popen() be used to direct streaming data to TAR?
How does iOS retrieve information from a BLE device?
How can Django Admin accommodate a variety of formats and locales for its input fields?