1
votes

I have setup Jenkins slave in AWS ECS, when jenkins have a build job, it will start a container in ECS instance, when the build job completed, the container will be gone. I want to disable build in Jenkins master to force user build in slave. I tried to set "# of executors"=0 in Configure System, but all the build job pending, it not go to slave to build. do you have a idea about this? Thanks.

1
Besides the previous comment, you probably have to instruct your job to use the AWS ECS slave or mark the AWS ECS slave as utilize this slave as much as possible.Jon S
I read this topic, they advise check "Restrict where this project can be run" and specific slave node, but how to force user check this checkbox, if they do not check, it will build in master.Tien Dung Tran

1 Answers

1
votes

When you check "Restrict where this project can be run" and text your slave's lable, your Job can only be run by that node.