build blocker disable queue scan feature not working

7 views
Skip to first unread message

AbS

unread,
Jul 26, 2020, 10:13:40 AM7/26/20
to Jenkins Developers
In Queue.java, just after bulildables are assigned executors(and state is changed to pending) using Mapping.execute(WorkUnitContext), I tried to see if nodes start executing buildable right away by adding:
executor.getCurrentWorkUnit().work.getOwnerTask()

Not surprisingly in latest releases, the assigned executor prints the job that was just assigned by adding above line, but in earlier releases(e.g. 1.580.1), no executor used to show this buildable task.(all printed null with above cmd).
What has changed here?

This feature is actually used in build blocker plugin to block builds and ignore queued job(if disabled queue checking), but due to this change, now even if queue is disabled, the queue is being checked.
Any help here please?
Reply all
Reply to author
Forward
0 new messages