Skip to content

Instantly share code, notes, and snippets.

@jlmelville
Created October 31, 2015 21:27
Show Gist options
  • Save jlmelville/135f8e471b7c0f622045 to your computer and use it in GitHub Desktop.
Save jlmelville/135f8e471b7c0f622045 to your computer and use it in GitHub Desktop.
Killing SCM polling threads in Jenkins
Thread.allStackTraces.keySet().each() {
if (it.name.contains("SCM polling")) {
println "Interrupting thread ${it.id} ${it.name}"
it.interrupt()
}
}
@jlmelville
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment