mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 00:00:09 +00:00
Merge "CI: Get job timeouts from environment" into 13
This commit is contained in:
@@ -10,10 +10,18 @@
|
|||||||
* we need to dynamically determine which docker image we're going to use and
|
* we need to dynamically determine which docker image we're going to use and
|
||||||
* you can't do that in a delcarative pipeline.
|
* you can't do that in a delcarative pipeline.
|
||||||
*/
|
*/
|
||||||
|
def timeoutTime = 60
|
||||||
|
def timeoutUnits = 'MINUTES'
|
||||||
|
if (env.TIMEOUT_GATES) {
|
||||||
|
def _timeout = env.TIMEOUT_GATES.split()
|
||||||
|
timeoutTime = _timeout[0].toInteger()
|
||||||
|
timeoutUnits = _timeout[1]
|
||||||
|
}
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
options {
|
options {
|
||||||
timestamps()
|
timestamps()
|
||||||
timeout(time: 60, unit: 'MINUTES')
|
timeout(time: timeoutTime, unit: timeoutUnits)
|
||||||
}
|
}
|
||||||
triggers {
|
triggers {
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -10,10 +10,18 @@
|
|||||||
* we need to dynamically determine which docker image we're going to use and
|
* we need to dynamically determine which docker image we're going to use and
|
||||||
* you can't do that in a delcarative pipeline.
|
* you can't do that in a delcarative pipeline.
|
||||||
*/
|
*/
|
||||||
|
def timeoutTime = 3
|
||||||
|
def timeoutUnits = 'HOURS'
|
||||||
|
if (env.TIMEOUT_DAILIES) {
|
||||||
|
def _timeout = env.TIMEOUT_DAILIES.split()
|
||||||
|
timeoutTime = _timeout[0].toInteger()
|
||||||
|
timeoutUnits = _timeout[1]
|
||||||
|
}
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
options {
|
options {
|
||||||
timestamps()
|
timestamps()
|
||||||
timeout(time: 3, unit: 'HOURS')
|
timeout(time: timeoutTime, unit: timeoutUnits)
|
||||||
}
|
}
|
||||||
triggers {
|
triggers {
|
||||||
cron 'H H(0-4) * * *'
|
cron 'H H(0-4) * * *'
|
||||||
|
|||||||
@@ -10,10 +10,18 @@
|
|||||||
* we need to dynamically determine which docker image we're going to use and
|
* we need to dynamically determine which docker image we're going to use and
|
||||||
* you can't do that in a delcarative pipeline.
|
* you can't do that in a delcarative pipeline.
|
||||||
*/
|
*/
|
||||||
|
def timeoutTime = 24
|
||||||
|
def timeoutUnits = 'HOURS'
|
||||||
|
if (env.TIMEOUT_REF_DEBUG) {
|
||||||
|
def _timeout = env.TIMEOUT_REF_DEBUG.split()
|
||||||
|
timeoutTime = _timeout[0].toInteger()
|
||||||
|
timeoutUnits = _timeout[1]
|
||||||
|
}
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
options {
|
options {
|
||||||
timestamps()
|
timestamps()
|
||||||
timeout(time: 1, unit: 'DAYS')
|
timeout(time: timeoutTime, unit: timeoutUnits)
|
||||||
}
|
}
|
||||||
triggers {
|
triggers {
|
||||||
cron 'H H(0-4) * * 0'
|
cron 'H H(0-4) * * 0'
|
||||||
|
|||||||
@@ -10,10 +10,18 @@
|
|||||||
* we need to dynamically determine which docker image we're going to use and
|
* we need to dynamically determine which docker image we're going to use and
|
||||||
* you can't do that in a delcarative pipeline.
|
* you can't do that in a delcarative pipeline.
|
||||||
*/
|
*/
|
||||||
|
def timeoutTime = 30
|
||||||
|
def timeoutUnits = 'MINUTES'
|
||||||
|
if (env.TIMEOUT_UNITTESTS) {
|
||||||
|
def _timeout = env.TIMEOUT_UNITTESTS.split()
|
||||||
|
timeoutTime = _timeout[0].toInteger()
|
||||||
|
timeoutUnits = _timeout[1]
|
||||||
|
}
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
options {
|
options {
|
||||||
timestamps()
|
timestamps()
|
||||||
timeout(time: 30, unit: 'MINUTES')
|
timeout(time: timeoutTime, unit: timeoutUnits)
|
||||||
}
|
}
|
||||||
triggers {
|
triggers {
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user