Options in Jenkinsfile

This commit is contained in:
Guillem Hernandez Sola
2026-04-13 17:52:04 +02:00
parent 526272fe30
commit 50df25d86e
42 changed files with 180 additions and 38 deletions

View File

@@ -1,5 +1,12 @@
pipeline { pipeline {
agent any agent any
options {
timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
}
triggers { triggers {
// 'H' balances the load on Jenkins, running roughly every 30 minutes // 'H' balances the load on Jenkins, running roughly every 30 minutes

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -1,6 +1,13 @@
pipeline { pipeline {
agent any agent any
options {
timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
}
triggers { triggers {
// 'H' balances the load on Jenkins, running roughly every 30 minutes // 'H' balances the load on Jenkins, running roughly every 30 minutes
cron('H/30 * * * *') cron('H/30 * * * *')

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -1,5 +1,12 @@
pipeline { pipeline {
agent any agent any
options {
timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
}
triggers { triggers {
cron('H */6 * * *') cron('H */6 * * *')

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -1,5 +1,12 @@
pipeline { pipeline {
agent any agent any
options {
timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
}
triggers { triggers {
// Runs every 30 minutes, matching your GitHub Action cron // Runs every 30 minutes, matching your GitHub Action cron

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {

View File

@@ -2,7 +2,10 @@ pipeline {
agent any agent any
options { options {
skipDefaultCheckout(true) timeout(time: 15, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
} }
triggers { triggers {