I could use some advice for debugging a behavior where a build is created but never executed. Its "Console Output" is perpetually blank except for a spinning wheel, and it doesn't show up as pending or otherwise in the "Build Executor Status" list, so I don't know the nature of its failure to start running.
It happens when someone kicks off a run of a "master project" (our plugin <https://github.com/etsy/jenkins-master-project> for parallelized builds) that kicks off many sub-builds and waits for them to finish. Every now and then, maybe once out of 100 builds, one of the sub-builds, which is *itself* a master project kicking off sub-sub-builds, won't start. Like I said, its console output stays empty, it doesn't appear in the pending build list, and its orb keeps blinking forever. A thread dump doesn't show anything with the name/number of the job. Nothing helpful shows up in the Jenkins logs. It's as if the build gets dropped from the build queue and never scheduled. We delete the build from the command line when this happens. I suspect some buggy interaction or usage in our plugin, but I have no clue how to get some feedback on the error. The only way I've managed to poke at it is via the groovy console. Say the hanging sub-build is "sub-master" #1234: def hi = hudson.model.Hudson.getInstance() def project = hi.getItem("sub-master") def build = project.getBuildByNumber(1234) println(build.isBuilding()) // prints 'true' def executor = build.getExecutor() println(executor) // prints 'null' println(build.getOneOffExecutor()) // prints 'null' println(build.hasntStartedYet()) // prints 'true' I think I want to answer the question "why does the build never get an executor and not show up as pending in the UI?" Or in other words, why is it getting dropped on the floor? But I'm not sure where to look or how to investigate next time this happens. Any suggestions? Thanks, Yash -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1191fb34-58e1-4be9-a173-c9ef347a9cc4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.