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:
parent
645cd5d03b
commit
589cc965e3
|
@ -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')
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue