Sign in
gerrit
/
gerrit-ci-scripts
/
8e8d0e1aa2a9da31677471b334f15b10d85a1e38
/
.
/
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
()
}