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

          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 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

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

              Created:
              Updated:
              Resolved: