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?