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

defaultScheduleTime in JCasC config of schedule build plugin halts startup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: schedule-build-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.303.1
      schedule build plugin 1.0.0-beta1 plus several items
    • Similar Issues:
    • Released As:
      149.v3f2558fe12e4

      Description

      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.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

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

              Dates

              Created:
              Updated:
              Resolved: