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

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

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Similar Issues:

      Description

      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 * * *".

        Attachments

          Issue Links

            Activity

            Hide
            ohtake_tomohiro 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.

            Show
            ohtake_tomohiro 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.
            Hide
            danny Danny Yates added a comment -

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

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

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

            Show
            snekse Derek E added a comment - What is a good way to test this? Is this true for 1.480 as well?
            Hide
            evernat 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

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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: