Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Calendar monthAgo = Calendar.getInstance();
monthAgo.add(Calendar.DATE, -180);
Jenkins.instance.getAllItems(AbstractProject.class).each {p ->
if ( !p.getLastBuild() || p.getLastBuild().getTimestamp().compareTo(monthAgo) < 0)
println p.getFullName() + ':'+ p.getLastBuild()?.getTimestampString()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.