title: Groovy script to get Jenkins trigger time
body: <p>I am trying to get the trigger time of all jobs in Jenkins so that I can decide on when to schedule it.
  Following script displays an object, but is unable to get the schedule time and date.</p>
  
  <pre><code>import org.jvnet.hudson.plugins.groovypostbuild.*;
  import jenkins.plugins.slack.*;
  jobs = hudson.model.Hudson.instance.getAllItems(FreeStyleProject)
  for (job in jobs) {
             timeT=job.triggers();
             println "job: " + job.getFullName() + " " + timeT
  }
  </code></pre>