Gan3i
Gan3i

Reputation: 107

How to increase number executors on jenkins build agent(kubernetes pods)

I have a pod template declared in configure clouds section and I am using jenkins/inbound-agent:4.3-4 image, build agents are coming up fine but they are coming up with just one executor, is there a way I can increase that number?

enter image description here

The reason I would like to increase the number of executors is, I want to create a job which triggers other jobs sequentially and I want to all the downstream projects to run on the same agent as the main job.

I don't see any option in configure cloud section, any heap or clue on workarounds is appreciated.

Upvotes: 1

Views: 1030

Answers (1)

jinzhi li
jinzhi li

Reputation: 11

I met the same issue with the same situation.

I found a post which similiar with this situation,maybe the kubernetes plugin is as same as amazon-ecs plugin,they both hard coded the executors value as 1.

Jenkins inbound-agent container via ecs/fargate plugin - set # executors for node

So, run pipeline steps one by one is the only way I know to avoid this issue. If you need call other job,set wait:false would be work, like this

build(job: "xxxx", wait: false, parameters: [string(name: "key", value: "value")])

Upvotes: 1

Related Questions