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

defaultScheduleTime in JCasC config of schedule build plugin halts startup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • schedule-build-plugin
    • None
    • Jenkins 2.303.1
      schedule build plugin 1.0.0-beta1 plus several items
    • 149.v3f2558fe12e4

      The example configuration as code snippet for the schedule build plugin halts my Jenkins instance during startup. The example is:

      unclassified:
        scheduleBuild:
          defaultScheduleTime: 23:00:00
          timeZone: Europe/Paris
      

      The configuration as code errors report that timeZone cannot be used as a map.

      Any use of defaultScheduleTime seems to cause Jenkins startup to halt with an error. If I start Jenkins with a working configuration like:

      unclassified:
        scheduleBuild:
          timeZone: "America/Denver"
      

      then the configuration as code "View configuration" will show the following segment:

      unclassified:
        scheduleBuild:
          defaultScheduleTime: "10:00:00 PM"
          timeZone: "America/Denver"
      

      However, if I save that configuration and restart Jenkins, the Jenkins startup process will halt.

      I've not found any format of defaultScheduleTime that will allow Jenkins to start.

            Unassigned Unassigned
            markewaite Mark Waite
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: