Node steps are not correctly associated with their WorkflowRun through the Queue.Task API when restarting Pipelines

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • workflow-durable-task-step 2.24

      When a pipeline resumes inside of a node block, the task that gets queued in Jenkins to restart the build is an ExecutorStepExecution.PlaceholderTask. When a custom QueueTaskDispatcher is in use, the Queue.BuildableItem passed to methods such as canTake will be an instance of ExecutorStepExecution.PlaceholderTask. However, calling getOwnerTask on the item does not return the WorkflowJob for the Pipeline and instead returns the ExecutorStepExecution.PlaceholderTask instance here, which means that some custom QueueTaskDispatcher instances may not be able to correctly dispatch Pipeline jobs after they are restarted.

            Assignee:
            Devin Nusbaum
            Reporter:
            Devin Nusbaum
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: