From a71f9dd380ad09069f5266c79b1a8dc4b08404db Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Sat, 23 Nov 2024 11:15:57 +0100 Subject: [PATCH] experimentally limit cpu and ram for Jenkins agent --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index dc466d28..83ca272e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,9 @@ pipeline { dockerfile { filename 'etc/jenkinsAgent.Dockerfile' // additionalBuildArgs ... - args '--network=bridge --user root -v $PWD:$PWD -v /var/run/docker.sock:/var/run/docker.sock --group-add 984' + args '--network=bridge --user root -v $PWD:$PWD + -v /var/run/docker.sock:/var/run/docker.sock --group-add 984 + --memory=8g --cpus=3' reuseNode true } }