Facing problem while trying to trigger concurrent executions of a job via Jenkins API.
Have configured a job to run builds concurrently.
It works fine when the jobs are triggered after a few minutes. Execute first job run, let it get started and then start the second job run. Both the first and second jobs run concurrently now and we get separate build ids for each job run.
However, when we try to execute job concurrently at the same time it just triggers one execution of the job and returns its build id.
Have tested it with both the python-jenkins wrapper and Jenkins python REST API. Please find both the scripts attached.
Suspect the queue does not take more then one instance of the job at a given time. Can only see one instance of my job on the queue when we trigger simultaneous invocation.
Tried to change the build parameters as well but still face the same problem.
Can someone please help.