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

Time restriction does not work if earliest >= latest

      When setting up a time condition with earliest >= latest, for example 23:00 and 06:00 to run the step in the night, the condition evaluates to false. Log extract:

      Time condition: evaluating [23:00] <= 12:15 AM <= [06:00]
      Run condition [Time] preventing perform for step [BuilderChain]
      

          [JENKINS-21491] Time restriction does not work if earliest >= latest

          Ronny Schuetz created issue -
          Ronny Schuetz made changes -
          Summary Original: Time restiction does not work if earliest >= latest New: Time restriction does not work if earliest >= latest

          Andy Bigos added a comment -

          Just hit the same issue. Would be great if the period could span midnight.

          Andy Bigos added a comment - Just hit the same issue. Would be great if the period could span midnight.

          It is worse - the plugin does not properly compare 12hr - 24hr clock. I will try setting the clock of Jenkins to 24hr (using the Locale language setting).

          Nikolay Diakov added a comment - It is worse - the plugin does not properly compare 12hr - 24hr clock. I will try setting the clock of Jenkins to 24hr (using the Locale language setting).
          Dominik Bartholdi made changes -
          Component/s New: run-condition-plugin [ 16129 ]
          Component/s Original: conditional-buildstep-plugin [ 15947 ]
          Dominik Bartholdi made changes -
          Assignee Original: Dominik Bartholdi [ domi ] New: bap [ bap ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 153357 ] New: JNJira + In-Review [ 178508 ]

            bap bap
            rschuetz Ronny Schuetz
            Votes:
            6 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: