Created
October 31, 2015 21:27
-
-
Save jlmelville/135f8e471b7c0f622045 to your computer and use it in GitHub Desktop.
Killing SCM polling threads in Jenkins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread.allStackTraces.keySet().each() { | |
if (it.name.contains("SCM polling")) { | |
println "Interrupting thread ${it.id} ${it.name}" | |
it.interrupt() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If nothing seems to be happening on Jenkins despite code checkins, it's possible that network problems have caused the polling threads to hang. Paste the above into the groovy script console.