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

Upstream and downstream jobs should run on only one executor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Not A Defect
    • Component/s: _unsorted
    • Labels:
      None
    • Similar Issues:

      Description

      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"

        Attachments

          Activity

          user77 user77 created issue -
          markewaite Mark Waite made changes -
          Field Original Value New Value
          Resolution Not A Defect [ 7 ]
          Status Open [ 1 ] Closed [ 6 ]

            People

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

              Dates

              Created:
              Updated:
              Resolved: