In Blueocean we want to correlate a queued item to the pipeline 'node' block's FlowNode. This is so that we can show cause of blockage to appropriate stage/parallel.
We can get PlaceholderTask from build queue (Queue.Item.task). PlaceholderTask has StepContext but its private final. If it's exposed then I can simply call PlaceholderTask.context.get(FlowNode.class) and establish correlation with the 'node' block thats waiting to be executed and report appropriate cause of blockage. Basically it will be great if I have access to StepContext from PlaceholderTask or if there is some other way I can establish such correlation that would do that too.
I also noticed, PlaceholderTask.getCauseOfBlockage() is always null, not a big deal as I can get it from Queue.Item.