mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
Jenkinsfile: Enforce global execution timeout
This patch adds a global execution timeout to the Jenkinsfile to avoid infinite pending Jenkins pipelines, such as when certain worker nodes are not available. The global execution timeout is now set to 4 hours which is derived from total timeout of our longest stage (e.g. the `Worker build`). Fixes: #5148 Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
2ce503f457
commit
1ee2922dbc
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -1,6 +1,9 @@
|
|||||||
def runWorkers = true
|
def runWorkers = true
|
||||||
pipeline {
|
pipeline {
|
||||||
agent none
|
agent none
|
||||||
|
options {
|
||||||
|
timeout(time: 4, unit: 'HOURS')
|
||||||
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Early checks') {
|
stage('Early checks') {
|
||||||
agent { node { label 'built-in' } }
|
agent { node { label 'built-in' } }
|
||||||
|
Loading…
Reference in New Issue
Block a user