Sign in
gerrit
/
gerrit-ci-scripts
/
ba70927dfd0916463e905c96df380c3a1c223d16
/
.
/
jenkins-docker
/
master
/
number-executors.groovy
blob: 491715f55292cc5d71fada3723cb75dde3843438 [
file
] [
log
] [
blame
]
import
hudson
.
model
.*;
import
jenkins
.
model
.*;
Thread
.
start
{
sleep
10000
println
"--> setting maximum number of executors on master"
Jenkins
.
instance
.
setNumExecutors
(
1
)
Jenkins
.
instance
.
reload
()
}