ci: add timeouts to all Jenkinsfiles

This is especially important for tests.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-05-29 12:40:00 +02:00
parent 645cd5d03b
commit 589cc965e3
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
6 changed files with 12 additions and 0 deletions

View File

@ -17,6 +17,8 @@ pipeline {
} }
options { options {
/* Prevent Jenkins jobs from running forever */
timeout(time: 30, unit: 'MINUTES')
disableConcurrentBuilds() disableConcurrentBuilds()
/* Go requires a certain directory structure */ /* Go requires a certain directory structure */
checkoutToSubdirectory('src/github.com/status-im/status-go') checkoutToSubdirectory('src/github.com/status-im/status-go')

View File

@ -18,6 +18,8 @@ pipeline {
options { options {
timestamps() timestamps()
/* Prevent Jenkins jobs from running forever */
timeout(time: 10, unit: 'MINUTES')
disableConcurrentBuilds() disableConcurrentBuilds()
/* manage how many builds we keep */ /* manage how many builds we keep */
buildDiscarder(logRotator( buildDiscarder(logRotator(

View File

@ -18,6 +18,8 @@ pipeline {
options { options {
timestamps() timestamps()
/* Prevent Jenkins jobs from running forever */
timeout(time: 10, unit: 'MINUTES')
disableConcurrentBuilds() disableConcurrentBuilds()
/* Go requires a certain directory structure */ /* Go requires a certain directory structure */
checkoutToSubdirectory('src/github.com/status-im/status-go') checkoutToSubdirectory('src/github.com/status-im/status-go')

View File

@ -18,6 +18,8 @@ pipeline {
options { options {
timestamps() timestamps()
/* Prevent Jenkins jobs from running forever */
timeout(time: 10, unit: 'MINUTES')
disableConcurrentBuilds() disableConcurrentBuilds()
/* manage how many builds we keep */ /* manage how many builds we keep */
buildDiscarder(logRotator( buildDiscarder(logRotator(

View File

@ -18,6 +18,8 @@ pipeline {
options { options {
timestamps() timestamps()
/* Prevent Jenkins jobs from running forever */
timeout(time: 10, unit: 'MINUTES')
disableConcurrentBuilds() disableConcurrentBuilds()
/* manage how many builds we keep */ /* manage how many builds we keep */
buildDiscarder(logRotator( buildDiscarder(logRotator(

View File

@ -13,6 +13,8 @@ pipeline {
options { options {
timestamps() timestamps()
/* Prevent Jenkins jobs from running forever */
timeout(time: 20, unit: 'MINUTES')
disableConcurrentBuilds() disableConcurrentBuilds()
/* manage how many builds we keep */ /* manage how many builds we keep */
buildDiscarder(logRotator( buildDiscarder(logRotator(