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

Can't save job configuration: JSONObject["hudson-triggers-TimerTrigger"] is not a JSONObject

      After upgrading Jenkins to 2.264 or higher I am unable to save any job configuration that uses a "Build periodically" trigger. If I modify an existing job with such a trigger or create a new job and include such a trigger and try to save, the following exception shows up and the configuration is not saved:

      JSONObject["hudson-triggers-TimerTrigger"] is not a JSONObject.

      Stack trace and Jenkins log for "doConfigSubmit" attached.

      Steps to reproduce:

      • Create New Item -> Freestyle project
      • Select checkbox "Build periodically" in section Build Triggers
      • Enter any schedule, e. g. "@mignight" or "H 1 * * *"
      • Click save -> ERROR

      As far as I know both freestyle project and periodic trigger are part of core Jenkins and not of any plugin, but I am not completely sure about that. If I should provide a list of installed plugins or check for any specific one, please let me know.

      I reproduced this bug with Jenkins 2.264, 2.269 and the latest version 2.274. Downgrading to 2.263 resolves it.

          [JENKINS-64568] Can't save job configuration: JSONObject["hudson-triggers-TimerTrigger"] is not a JSONObject

          Inga created issue -
          Inga made changes -
          Description Original: After upgrading Jenkins to 2.264 or higher I am unable to save any job configuration that uses a "Build periodically" trigger. If I modify an existing job with such a trigger or create a new job and include such a trigger and try to save, the following exception shows up and the configuration is not saved:

          JSONObject["hudson-triggers-TimerTrigger"] is not a JSONObject.

          Stack trace and Jenkins log for "doConfigSubmit" attached.

          Steps to reproduce:
           * Create New Item -> Freestyle project
           * Select checkbox "Build periodically" in section Build Triggers
           * Enter any schedule, e. g. "@mignight" or "H 1 * * *"
           * Click save -> ERROR

          As far as I know both freestyle project and periodic trigger are part of core Jenkins and not of any plugin, but I am not completely sure about that. If I should provide a least of installed plugins or check for any specific one, please let me know.

          I reproduced this bug with Jenkins 2.264, 2.269 and the latest version 2.274. Downgrading to 2.263 resolves it.
          New: After upgrading Jenkins to 2.264 or higher I am unable to save any job configuration that uses a "Build periodically" trigger. If I modify an existing job with such a trigger or create a new job and include such a trigger and try to save, the following exception shows up and the configuration is not saved:

          JSONObject["hudson-triggers-TimerTrigger"] is not a JSONObject.

          Stack trace and Jenkins log for "doConfigSubmit" attached.

          Steps to reproduce:
           * Create New Item -> Freestyle project
           * Select checkbox "Build periodically" in section Build Triggers
           * Enter any schedule, e. g. "@mignight" or "H 1 * * *"
           * Click save -> ERROR

          As far as I know both freestyle project and periodic trigger are part of core Jenkins and not of any plugin, but I am not completely sure about that. If I should provide a list of installed plugins or check for any specific one, please let me know.

          I reproduced this bug with Jenkins 2.264, 2.269 and the latest version 2.274. Downgrading to 2.263 resolves it.
          Tim Jacomb made changes -
          Labels New: tables-to-divs-regression
          Tim Jacomb made changes -
          Component/s New: _unsorted [ 19622 ]
          Component/s Original: core [ 15593 ]
          Inga made changes -
          Attachment New: plugins.txt [ 53776 ]
          Maor made changes -
          Attachment New: image-2021-01-10-12-54-41-223.png [ 53787 ]
          Tim Jacomb made changes -
          Component/s New: active-choices-plugin [ 20520 ]
          Component/s Original: _unsorted [ 19622 ]
          Tim Jacomb made changes -
          Link New: This issue duplicates JENKINS-62806 [ JENKINS-62806 ]
          Tim Jacomb made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Tim Jacomb made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            iquatuor Inga
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: