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

Cron hashing syntax is ignored in Poll SCM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None
    • Jenkins 1.653

      Entering a hashable cron value like @midnight, @daily, or H 4 * * * in the "Poll SCM" field of a job seems to ignore the hashable part, and the value 0 is used instead.

      i.e. Jobs scheduled to poll @midnight actually do occur at midnight (according to the text in the config page; see screenshot), and polling scheduled as H 4 * * * is shown to always start at minute zero of that hour. I would expect these to happen — as documented, and as works for "Build periodically" — at pseudo-randomly chosen times.

      I've seen this across various different jobs, so it wasn't just luck that I happened to see 12:00 come up as the "midnight" time.

            Unassigned Unassigned
            orrc Christopher Orr
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: