Abort hudson builds with huge logs
Groovy script for hudson's scripler/script console (for latter case import line could be removed) aborting running builds with loo large logs.
Copy this code and paste it in your HTML
MAX_LOG_MB = 1024
Hudson.
instance.
items.
lastBuild.
findAll{ it
&& it.
state == Run.
State.
BUILDING && it.
logFile.
size()/
(1024 * 1024) > MAX_LOG_MB
}*.doStop()
URL: hudson_kill_huge_build
Report this snippet
Comments
Subscribe to comments