experimentally limit cpu and ram for Jenkins agent
This commit is contained in:
parent
2cdee9f693
commit
a71f9dd380
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user