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

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

XMLWordPrintable

      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.

        1. image-2021-01-10-12-54-41-223.png
          79 kB
          Maor
        2. plugins.txt
          2 kB
          Inga
        3. TimerTrigger_Log.txt
          12 kB
          Inga
        4. TimerTrigger_StackTrace.txt
          9 kB
          Inga

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

              Created:
              Updated:
              Resolved: