Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44284

Jenkins concurrent builds not working when triggered simultaneously

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • core
    • Jenkins ver. 2.55

      Hi Team,

      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.

      Regards,

      Narendra Patel

        1. config.xml
          2 kB
        2. jenkins_rest_api.py
          1 kB
        3. python-jenkins.py
          1 kB

            Unassigned Unassigned
            narendrapatel Narendra Patel
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: