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

Cron expression 'H H * * *' does not work as advertised

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core

      Setting cron expression 'H H * * *' is supposed to generate a "random" time for the job to spread load. However, on 1.478 it appears to simply generate "0 0 * * *".

          [JENKINS-15027] Cron expression 'H H * * *' does not work as advertised

          Danny Yates created issue -

          JAVA_ARGS "-Dhudson.scheduler.BaseParser.hash=true" is required to enabled 'H' token. It seems that there is no description about that.

          OHTAKE Tomohiro added a comment - JAVA_ARGS "-Dhudson.scheduler.BaseParser.hash=true" is required to enabled 'H' token. It seems that there is no description about that.

          Danny Yates added a comment -

          Thanks. I haven't tried this yet, but it should definitely be in the documentation!

          Danny Yates added a comment - Thanks. I haven't tried this yet, but it should definitely be in the documentation!

          Derek E added a comment -

          What is a good way to test this? Is this true for 1.480 as well?

          Derek E added a comment - What is a good way to test this? Is this true for 1.480 as well?
          evernat made changes -
          Link New: This issue is related to JENKINS-17311 [ JENKINS-17311 ]

          evernat added a comment -

          This was fixed by JENKINS-17311. The H syntax is now enabled by default and does not need to add a system property.

          See changes in https://github.com/jenkinsci/jenkins/pull/743/files

          evernat added a comment - This was fixed by JENKINS-17311 . The H syntax is now enabled by default and does not need to add a system property. See changes in https://github.com/jenkinsci/jenkins/pull/743/files
          evernat made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Jesse Glick made changes -
          Labels Original: cron, New: cron
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 145746 ] New: JNJira + In-Review [ 191609 ]

            Unassigned Unassigned
            danny Danny Yates
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: