From 09b8377a43a8f068682b1f1937c3202d1b162918 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 7 Sep 2021 12:06:48 +0200 Subject: Jenkins: Docker: add build options when assembling container (cherry picked from commit 925cf87950cc66615046219a6f18910b3722bd67) --- Jenkinsfile.docker | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Jenkinsfile.docker') 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" } } -- cgit v1.2.3