experimentally limit cpu and ram for Jenkins agent

This commit is contained in:
Michael Hoennig 2024-11-23 11:15:57 +01:00
parent 2cdee9f693
commit a71f9dd380

4
Jenkinsfile vendored
View File

@ -3,7 +3,9 @@ pipeline {
dockerfile { dockerfile {
filename 'etc/jenkinsAgent.Dockerfile' filename 'etc/jenkinsAgent.Dockerfile'
// additionalBuildArgs ... // 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 reuseNode true
} }
} }