Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-12580

Build Trigger - Build Peridoically - alternate schedule - build if last older than n (min/hours/days/etc)

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None

      Build Periodically is currently pure cron, (e.g. build every 3 days at 1 am).

      Is also a need to check that environment, etc has not rotted on infrequent jobs. But don't want to bottle up all the executors every n time quanta hitting every job to make sure its still viable.

      An alternate might be to build jobs that haven't been build (possibly still in a cronish interval, older than so many weeks/days/etc).

      E.g. currently:

      SCM Trigger [ check every 10 min ]
      (*/10 * * * *)

      Time Trigger [ check every 5 days ]
      (1 1 */5 * *)

      If job built on 4th day at 23:00 hours, then Time Trigger will effectively schedule another job, which has little value

      Suggested

      SCM Trigger [ check every 10 min ]
      (*/10 * * * *)

      Time Trigger [ check every 5 days ]
      (1 1 */5 * *) x

      { delta since last execution [new checkbox or whatever indicating this is a delta since last, rather than every time] }

      If job is built on day 7 at 2:30 , then the time trigger won't fire until day 12 at 3:31 (+5 days, + 1 hour + 1 min) since last job execution

          [JENKINS-12580] Build Trigger - Build Peridoically - alternate schedule - build if last older than n (min/hours/days/etc)

          There are no comments yet on this issue.

            Unassigned Unassigned
            moncreaff Greg Moncreaff
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: