summaryrefslogtreecommitdiff
path: root/Jenkinsfile.docker
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-09-07 12:06:48 +0200
committerChristian Poessinger <christian@poessinger.com>2021-09-07 12:07:48 +0200
commit09b8377a43a8f068682b1f1937c3202d1b162918 (patch)
tree035ff3546e4faf118cf19ad006f9b697e0492f1d /Jenkinsfile.docker
parent0f34e1b71b090d0e8af56dd2a769ac329cdc44ef (diff)
downloadvyos-build-09b8377a43a8f068682b1f1937c3202d1b162918.tar.gz
vyos-build-09b8377a43a8f068682b1f1937c3202d1b162918.zip
Jenkins: Docker: add build options when assembling container
(cherry picked from commit 925cf87950cc66615046219a6f18910b3722bd67)
Diffstat (limited to 'Jenkinsfile.docker')
-rw-r--r--Jenkinsfile.docker8
1 files changed, 7 insertions, 1 deletions
diff --git a/Jenkinsfile.docker b/Jenkinsfile.docker
index 6a4b6d4c..7f8abe14 100644
--- a/Jenkinsfile.docker
+++ b/Jenkinsfile.docker
@@ -23,6 +23,12 @@ setDescription()
pipeline {
agent none
+ options {
+ disableConcurrentBuilds()
+ timeout(time: 240, unit: 'MINUTES')
+ timestamps()
+ buildDiscarder(logRotator(numToKeepStr: '20'))
+ }
stages {
stage('Build containers') {
when {
@@ -32,7 +38,7 @@ pipeline {
// once a night triggered by the timer.
anyOf {
changeset pattern: "**/docker/*"
- changeset pattern: "**/Jenkinsfile.docker"
+ changeset pattern: "**/Jenkinsfile.docker"
triggeredBy cause: "UserIdCause"
}
}