1

I have a job that works on a specific executor and at some point triggers another job, wait until this job ends and then continues. The problem is, that the triggered job won't start and says"Waiting for next available executor on [executor_name]".

I think it happens because the triggered job thinks that the executor is "busy" becuse the first job is still running (although it doesn't do anything and just waits for the triggered job).

Here's how I trigger it:

        stage('Run tier1 tests') {
            when {
                expression { env.*****.toBoolean() }
            }
            steps {
                build(
                    job: 'test-******',
                    parameters: [
                        string(name: '*****', value: env.***),
                        string(name: '*****', value: '***'),
                        string(name: '*****', value: '0.20')
                    ],
                    propagate: false
                )
            }
        }

How can I make the triggered job run immediately?

1 Answers1

2

Increase the number of executors. The maximum number of Jenkins jobs is dependent upon what you set as the limits in the master and slaves.

For the master, this is set in Manage Jenkins > Configure System > # of executors

For the slaves (nodes), it is set in Manage Jenkins > Nodes > (each node) > Configure > # of executors

Sourav
  • 3,025
  • 2
  • 13
  • 29