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

Build failure causes are deleted when saving Jenkins global configuration.

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • None
    • Windows, jdk1.8.0_141, Jenkins LTS 2.190.1.
      Installed plugin list in attached file.
    • 1.23.1

      Basically a new build-failure-analyzer.xml configuration file with default settings is written when "Save" is clicked in Jenkins global configuration (http://jenkins_ulr/configure).

      I also observed that when installing build-failure-analyzer first time, then restart Jenkins, still there is no build-failure-analyzer.xml in JENKINS_HOME.
      If I change a global setting and click save, the file appears.
      If I add a failure cause, and and use it, it stays and is visible in build-failure-analyzer.xml.
      And the failure cause is still there after restarting Jenkins.
      But if I change the global configuration, the modifed file is overwritten with default settings, which means that I effectively loose all my failure causes.

      My BFA global settings are in the screenshot, and I notice alse that it defaults to enable the gerrit-trigger notifications, although that plugin is not installed.

      Reproduce:
      Install Jenkins, install all mentioned plugins except BFA
      Install BFA, restart Jenkins, Notice there is no BFA configuration file
      Change a global setting and save. Notice BFA configuration file now exist
      Add a failure cause - do what ever, the failure cause stays
      Change a global setting and save. Notice BFA configuration file still exists, but the failure cause is gone.

          [JENKINS-59610] Build failure causes are deleted when saving Jenkins global configuration.

          Jens Brejner created issue -
          Tomas Westling made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Tomas Westling made changes -
          Link New: This issue duplicates JENKINS-59593 [ JENKINS-59593 ]
          Tomas Westling made changes -
          Link Original: This issue duplicates JENKINS-59593 [ JENKINS-59593 ]
          Tomas Westling made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Philip Johnson made changes -
          Comment [ I wish I'd backed up that failure analyzer xml file. Dozens of causes lost :(. Anyone know if they'd be stored anywhere else? ]
          Tomas Westling made changes -
          Link New: This issue relates to JENKINS-59593 [ JENKINS-59593 ]
          Tomas Westling made changes -
          Released As New: 1.23.1
          Resolution New: Done [ 10000 ]
          Status Original: In Review [ 10005 ] New: Closed [ 6 ]
          Steve Graham made changes -
          Resolution Original: Done [ 10000 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]

            t_westling Tomas Westling
            jbrejner1 Jens Brejner
            Votes:
            7 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated: