Pod-agents are killed although not related to the really failing pod in the same build

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

XMLWordPrintable

      in PodUtils.cancelQueueItemFor(Pod pod, String reason), 

      https://github.com/jenkinsci/kubernetes-plugin/blob/master/src/main/java/org/csanchez/jenkins/plugins/kubernetes/PodUtils.java#L78C24-L78C66

       

      all items in the Queue that have a url that matches the runUrl annotation of the pod that should be cancelled, are cancelled 

      BUT: in the same jenkins-build, all agents (not necessarily pods, can be VMs also) created in that build will have the same runUrl annotation => if one of those pods fail and should (legitimately)  be cancelled/deleted, all other agents (not necessarily pods) of the same build that are waiting in the queue at the time PodUtils.cancelQueueItemFor() is called are also going to be cancelled, even if those pods are not related to the failing pod

            Assignee:
            Yacine
            Reporter:
            Yacine
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: