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 ]

          I have been able to reproduce the issue locally.

          Tomas Westling added a comment - I have been able to reproduce the issue locally.

          Nils Oliver Adam added a comment - - edited

          With Jenkins LTS 2.176.3 I've got the same issue.

          By going back from Build Failure Analyzer 1.23 to Build Failure Analyzer 1.22  the deletion doesn't happen anymore.

          Nils Oliver Adam added a comment - - edited With Jenkins LTS 2.176.3 I've got the same issue. By going back from Build Failure Analyzer  1.23 to Build Failure Analyzer  1.22  the deletion doesn't happen anymore.

          Tomas Westling added a comment - - edited

          Yes, the issue is in the Build Failure Analyzer v 1.23 and is present in every Jenkins version.

          I'm working on a fix.

          Tomas Westling added a comment - - edited Yes, the issue is in the Build Failure Analyzer v 1.23 and is present in every Jenkins version. I'm working on a fix.
          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 ]

          Tomas Westling added a comment - I have uploaded a fix here: https://github.com/jenkinsci/build-failure-analyzer-plugin/pull/112  

          Soeren Uttrup added a comment - - edited

          Hi t_westling
          When can i expect a plugin update to be ready for download ?

          Soeren Uttrup added a comment - - edited Hi t_westling When can i expect a plugin update to be ready for download ?

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

              Created:
              Updated: