-
New Feature
-
Resolution: Unresolved
-
Minor
-
Jenkins 2.387.3 on Linux.
The script below will pull the schedules for regular schedules, but cannot seem to pull for parameterized schedules. Since parameterized schedules are based on the regular ones, I would have thought this should still work.
I would like to know how to pull a summary report that includes the parameterized schedules.
Are there new TriggerDescriptors configured? Any different content a script would need to query?
import hudson.model.*
import hudson.triggers.*
TriggerDescriptor TIMER_TRIGGER_DESCRIPTOR = Hudson.instance.getDescriptorOrDie(TimerTrigger.class)
println ( "### CONFIGURED SCHEDULES ###" )
println ( "---------------------------------------------------------------------" )
for (item in Jenkins.instance.getAllItems(Job)) {
def timertrigger = item.getTriggers().get(TIMER_TRIGGER_DESCRIPTOR)
if (timertrigger)
}