From 33869d06a88bd5f3e6c0a75575e5933808472485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Politowski?= Date: Mon, 25 Apr 2022 13:53:00 +0200 Subject: [PATCH] Disable concurrent builds to reduce memory usage As described in the issue #1343 builds get killed by the OOM killer sometimes. Add lock('iis-build') to the build options to reduce memory usage whem multiple builds are triggered. As described eg. in https://issues.jenkins.io/browse/JENKINS-35359 the disableConcurrentBuilds option can only prevent concurrent builds of a single branch and using locks is the recommended workaround for serializing all the builds in a multibranch pipeline. --- Jenkinsfile.dockerized | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile.dockerized b/Jenkinsfile.dockerized index e397c5542..fee7fe2a3 100644 --- a/Jenkinsfile.dockerized +++ b/Jenkinsfile.dockerized @@ -12,6 +12,7 @@ pipeline { options { buildDiscarder(logRotator(numToKeepStr: '5')) timeout time: 60, unit: 'MINUTES' + lock('iis-build') } environment {