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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • core

    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

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

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

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

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

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

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

            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

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

              Dates

                Created:
                Updated:
                Resolved: