mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-24 21:08:38 +00:00
ci: add timeouts to Jenkins pipelines
We've seen a few jobs running on MacOS hosts stuck for days: * https://ci.status.im/job/nim-waku/job/prs/job/macos/job/PR-982/ * https://ci.status.im/job/nim-waku/job/prs/job/macos/job/PR-979/ Which is not acceptable. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
0847eec6e0
commit
89868bc7cd
@ -28,7 +28,9 @@ pipeline {
|
|||||||
|
|
||||||
options {
|
options {
|
||||||
timestamps()
|
timestamps()
|
||||||
/* manage how many builds we keep */
|
/* Prevent Jenkins jobs from running forever */
|
||||||
|
timeout(time: 30, unit: 'MINUTES')
|
||||||
|
/* Limit builds retained. */
|
||||||
buildDiscarder(logRotator(
|
buildDiscarder(logRotator(
|
||||||
numToKeepStr: '3',
|
numToKeepStr: '3',
|
||||||
daysToKeepStr: '30',
|
daysToKeepStr: '30',
|
||||||
|
@ -3,6 +3,8 @@ pipeline {
|
|||||||
|
|
||||||
options {
|
options {
|
||||||
timestamps()
|
timestamps()
|
||||||
|
/* Prevent Jenkins jobs from running forever */
|
||||||
|
timeout(time: 20, unit: 'MINUTES')
|
||||||
/* manage how many builds we keep */
|
/* manage how many builds we keep */
|
||||||
buildDiscarder(logRotator(
|
buildDiscarder(logRotator(
|
||||||
numToKeepStr: '10',
|
numToKeepStr: '10',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user