From 589cc965e318a3c17d4ccdafe638ce50608c0e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Mon, 29 May 2023 12:40:00 +0200 Subject: [PATCH] ci: add timeouts to all Jenkinsfiles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is especially important for tests. Signed-off-by: Jakub SokoĊ‚owski --- _assets/ci/Jenkinsfile | 2 ++ _assets/ci/Jenkinsfile.android | 2 ++ _assets/ci/Jenkinsfile.docker | 2 ++ _assets/ci/Jenkinsfile.ios | 2 ++ _assets/ci/Jenkinsfile.linux | 2 ++ _assets/ci/Jenkinsfile.tests | 2 ++ 6 files changed, 12 insertions(+) diff --git a/_assets/ci/Jenkinsfile b/_assets/ci/Jenkinsfile index a64bae746..3c8cb0728 100644 --- a/_assets/ci/Jenkinsfile +++ b/_assets/ci/Jenkinsfile @@ -17,6 +17,8 @@ pipeline { } options { + /* Prevent Jenkins jobs from running forever */ + timeout(time: 30, unit: 'MINUTES') disableConcurrentBuilds() /* Go requires a certain directory structure */ checkoutToSubdirectory('src/github.com/status-im/status-go') diff --git a/_assets/ci/Jenkinsfile.android b/_assets/ci/Jenkinsfile.android index 1f0bec868..081ed911a 100644 --- a/_assets/ci/Jenkinsfile.android +++ b/_assets/ci/Jenkinsfile.android @@ -18,6 +18,8 @@ pipeline { options { timestamps() + /* Prevent Jenkins jobs from running forever */ + timeout(time: 10, unit: 'MINUTES') disableConcurrentBuilds() /* manage how many builds we keep */ buildDiscarder(logRotator( diff --git a/_assets/ci/Jenkinsfile.docker b/_assets/ci/Jenkinsfile.docker index 43686f011..2a3ceaa64 100644 --- a/_assets/ci/Jenkinsfile.docker +++ b/_assets/ci/Jenkinsfile.docker @@ -18,6 +18,8 @@ pipeline { options { timestamps() + /* Prevent Jenkins jobs from running forever */ + timeout(time: 10, unit: 'MINUTES') disableConcurrentBuilds() /* Go requires a certain directory structure */ checkoutToSubdirectory('src/github.com/status-im/status-go') diff --git a/_assets/ci/Jenkinsfile.ios b/_assets/ci/Jenkinsfile.ios index 24adad771..7e134aa33 100644 --- a/_assets/ci/Jenkinsfile.ios +++ b/_assets/ci/Jenkinsfile.ios @@ -18,6 +18,8 @@ pipeline { options { timestamps() + /* Prevent Jenkins jobs from running forever */ + timeout(time: 10, unit: 'MINUTES') disableConcurrentBuilds() /* manage how many builds we keep */ buildDiscarder(logRotator( diff --git a/_assets/ci/Jenkinsfile.linux b/_assets/ci/Jenkinsfile.linux index 5454e5234..da8c11df4 100644 --- a/_assets/ci/Jenkinsfile.linux +++ b/_assets/ci/Jenkinsfile.linux @@ -18,6 +18,8 @@ pipeline { options { timestamps() + /* Prevent Jenkins jobs from running forever */ + timeout(time: 10, unit: 'MINUTES') disableConcurrentBuilds() /* manage how many builds we keep */ buildDiscarder(logRotator( diff --git a/_assets/ci/Jenkinsfile.tests b/_assets/ci/Jenkinsfile.tests index bfd6da64d..80ace3a17 100644 --- a/_assets/ci/Jenkinsfile.tests +++ b/_assets/ci/Jenkinsfile.tests @@ -13,6 +13,8 @@ pipeline { options { timestamps() + /* Prevent Jenkins jobs from running forever */ + timeout(time: 20, unit: 'MINUTES') disableConcurrentBuilds() /* manage how many builds we keep */ buildDiscarder(logRotator(