Queue.Item cancelled/deleted

20 views
Skip to first unread message

Joachim Nilsson

unread,
Nov 3, 2015, 11:54:01 AM11/3/15
to Jenkins Developers
Hi
Is there a way for a plugin to get information when an Item is deleted from the Queue?
I have a plugin that allocates resources from a QueueTaskDispatcher but naturally they are not returned when an Item is deleted.

Regards,
Joachim

Daniel Beck

unread,
Nov 3, 2015, 12:23:04 PM11/3/15
to jenkin...@googlegroups.com
Implement QueueListener#onLeft(Queue.LeftItem) and check Queue.LeftItem#isCancelled().
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/f10d8f0b-55f1-499b-b3a0-81e2541b31e5%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Joachim Nilsson

unread,
Nov 3, 2015, 1:06:46 PM11/3/15
to Jenkins Developers, m...@beckweb.net

Works like a charm! Thanks Daniel!
Reply all
Reply to author
Forward
0 new messages