build blocker disable queue scan feature not working

classic Classic list List threaded Threaded
1 message Options
AbS
Reply | Threaded
Open this post in threaded view
|

build blocker disable queue scan feature not working

AbS
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?

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/9e8c3eaa-3d99-4d7f-b7e9-4efc58ea15fcn%40googlegroups.com.