Created
March 5, 2015 07:32
-
-
Save mgedmin/d6d271f4ee6ae82d9a86 to your computer and use it in GitHub Desktop.
Jenkins groovy script to print scheduling rules for all the jobs
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
import hudson.triggers.*; | |
for (item in Jenkins.instance.getItems(Project)) { | |
println("--- Scheduling for " + item.name + " ---") | |
def trigger = item.triggers.get(Jenkins.instance.getDescriptor(TimerTrigger.class)); | |
if (trigger) { | |
println trigger.spec; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment