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

Upstream and downstream jobs should run on only one executor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • _unsorted
    • None

      Currently I have only one slave & one executor
      And we want to run upstream and downstream jobs on this single executor

      1. Suppose we have upstream job A which triggers downstream job B
      2. When upstream job starts running on executor, downstream job B goes into the queue
      3. As there is only one executor due to which the downstream job remains in the queue & it doesn't get a chance to run on executor as the executor is busy with running the upstream job. This leads to a deadlock scenario

      Is this is an issue or bug in jenkins itself?
      If it is not an issue then can someone please provide an appropriate solution for it

      I want this to happen:

      I want that the job B to run after the job A automatically from the queue on the "same executor",
      After job B is done executing, I again want job A to run again, but isn't happening
      Note: "there is this limitation that I cannot have multiple executors in my project for doing this"

            Unassigned Unassigned
            user77 user77
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: