Hi, I am currently extending QueueTaskDispatcher and customizing the canRun method, and it works fine.
I'd like to also control the Result of the Run originated from my Queue.Item that was under evaluation. Currently I am only able to achieve that with a custom Builder step. When researching, it sounded like I could achieve this without the Builder step, by grabbing a Future using item.getFuture(). But all my attempts to customize the behavior of the Executable's run() method returned when the Future resolves has failed. I've created a CustomBuild class that extends from Build, overwrote the run() method, and also overwrote the BuildExecution's doRun() to achieve what I need. But then I am not able to instantiate it using : QueueTaskFuture<CustomBuild> future = item.getFuture(). Eclipse only let's me do QueueTaskFuture<Executable> future = item.getFuture(), so not sure how can I tell that executable to evaluate to my CustomBuild. Thanks -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/8ee5e7e9-8e0c-4711-a33c-de4b590394b4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
