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

39 views
Skip to first unread message

jens@kaabrejner.dk (JIRA)

unread,
Oct 1, 2019, 10:11:11 AM10/1/19
to jenkinsc...@googlegroups.com
Jens Brejner created an issue
 
Jenkins / Bug JENKINS-59610
Build failure causes are deleted when saving Jenkins global configuration.
Issue Type: Bug Bug
Assignee: Tomas Westling
Attachments: bfa_settings.PNG, pluginslist.txt
Components: build-failure-analyzer-plugin
Created: 2019-10-01 14:10
Environment: Windows, jdk1.8.0_141, Jenkins LTS 2.190.1.
Installed plugin list in attached file.
Priority: Blocker Blocker
Reporter: Jens Brejner

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

tomas.westling@axis.com (JIRA)

unread,
Oct 2, 2019, 4:50:04 AM10/2/19
to jenkinsc...@googlegroups.com
Tomas Westling started work on Bug JENKINS-59610
 
Change By: Tomas Westling
Status: Open In Progress

tomas.westling@axis.com (JIRA)

unread,
Oct 2, 2019, 4:51:03 AM10/2/19
to jenkinsc...@googlegroups.com

n_o_adam@hotmail.com (JIRA)

unread,
Oct 2, 2019, 7:24:02 AM10/2/19
to jenkinsc...@googlegroups.com

tomas.westling@axis.com (JIRA)

unread,
Oct 2, 2019, 7:31:02 AM10/2/19
to jenkinsc...@googlegroups.com

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

I'm working on a fix.

tomas.westling@axis.com (JIRA)

unread,
Oct 2, 2019, 7:31:02 AM10/2/19
to jenkinsc...@googlegroups.com
Tomas Westling edited a comment on Bug JENKINS-59610
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.

n_o_adam@hotmail.com (JIRA)

unread,
Oct 2, 2019, 8:09:16 AM10/2/19
to jenkinsc...@googlegroups.com
Nils Oliver Adam edited a comment on Bug JENKINS-59610
With Jenkins LTS 2.176.3 I've got the same issue .

By going back from [Build Failure Analyzer|http://wiki.jenkins-ci.org/display/JENKINS/Build+Failure+Analyzer] 1.23 to [Build Failure Analyzer|http://wiki.jenkins-ci.org/display/JENKINS/Build+Failure+Analyzer] 1.22  the deletion doesn't happen anymore.

tomas.westling@axis.com (JIRA)

unread,
Oct 4, 2019, 8:19:03 AM10/4/19
to jenkinsc...@googlegroups.com

tomas.westling@axis.com (JIRA)

unread,
Oct 4, 2019, 8:20:03 AM10/4/19
to jenkinsc...@googlegroups.com

svut@stibosystems.com (JIRA)

unread,
Oct 8, 2019, 7:40:03 AM10/8/19
to jenkinsc...@googlegroups.com

svut@stibosystems.com (JIRA)

unread,
Oct 8, 2019, 7:41:03 AM10/8/19
to jenkinsc...@googlegroups.com
Soeren Uttrup edited a comment on Bug JENKINS-59610
Hi [~t_westling]
When can i expect a
new plugin update to be ready for download ?

tomas.westling@axis.com (JIRA)

unread,
Oct 8, 2019, 7:51:02 AM10/8/19
to jenkinsc...@googlegroups.com

I can't say for sure, but I am currently working on fixing some review comments.

After the pull request is in, releasing a new version is quick work.

philip.johnson@aveva.com (JIRA)

unread,
Oct 16, 2019, 5:39:05 AM10/16/19
to jenkinsc...@googlegroups.com

I wish I'd backed up that failure analyzer xml file. Dozens of causes lost . Anyone know if they'd be stored anywhere else?

philip.johnson@aveva.com (JIRA)

unread,
Oct 16, 2019, 6:33:02 AM10/16/19
to jenkinsc...@googlegroups.com
Philip Johnson updated an issue
 
Change By: Philip Johnson
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@axis.com (JIRA)

unread,
Oct 16, 2019, 6:43:03 AM10/16/19
to jenkinsc...@googlegroups.com

svut@stibosystems.com (JIRA)

unread,
Oct 17, 2019, 9:34:03 AM10/17/19
to jenkinsc...@googlegroups.com

tomas.westling@axis.com (JIRA)

unread,
Oct 18, 2019, 2:45:03 AM10/18/19
to jenkinsc...@googlegroups.com

That is weird, but seems it has to be a problem on your end, since 1.23.1 is visible from all our Jenkins instances.

When was the last "update information obtained" ? It has been in the update site for quite a while now.

svut@stibosystems.com (JIRA)

unread,
Oct 23, 2019, 5:36:04 AM10/23/19
to jenkinsc...@googlegroups.com

You were right, I was not getting any updates.
I have updated to 1.23.1 now and everything works fine.
Thanks !

steve.graham@siemens.com (JIRA)

unread,
Nov 4, 2019, 1:54:04 AM11/4/19
to jenkinsc...@googlegroups.com
Steve Graham reopened an issue
 

just noticed that ALL my build-failure-analysis reasons have been deleted, the xml file only contains the default.
I upgraded to the Jenkins weekly 2.202 last week ( Oct 29th ).
I did have build-analyser plugin version 1.24 installed.
I'm trying to go back to the 1.23.1 version.
Is there a backup of the build-failuer-analyser.xml file ?

Change By: Steve Graham
Resolution: Done
Status: Closed Reopened

steve.graham@siemens.com (JIRA)

unread,
Nov 4, 2019, 1:55:04 AM11/4/19
to jenkinsc...@googlegroups.com
just noticed that ALL my build-failure-analysis reasons have been deleted, the xml file only contains the default.
I upgraded to the Jenkins weekly 2.202 last week ( Oct 29th ).
I did have build-analyser plugin version 1.24 installed.
I'm trying to go back to the 1.23.1 version - but I guess its not going to get my failure reasons back again .

Is there a backup of the build-failuer-analyser.xml file ?

steve.graham@siemens.com (JIRA)

unread,
Nov 4, 2019, 2:01:03 AM11/4/19
to jenkinsc...@googlegroups.com
Steve Graham edited a comment on Bug JENKINS-59610
just noticed that ALL my build-failure-analysis reasons have been deleted, the xml file only contains the default.
I upgraded to the Jenkins weekly 2.202 last week ( Oct 29th ).
I did have build-analyser plugin version 1.24 installed.
I'm trying to go back to the 1.23.1 version - but I guess its not going to get my failure reasons back again.
I'm also fairly sure I didn't change the Global configuration.
Is there a backup of the build-failuer-analyser.xml file ?

( I cancelled the uninstall of version 1.24 - it won't bring back my extensive database of failure reasons )

steve.graham@siemens.com (JIRA)

unread,
Nov 4, 2019, 2:10:03 AM11/4/19
to jenkinsc...@googlegroups.com

I found an old version of the build-failuer-analyser.xml file from Oct 2018 and copied it. Reloaded the configuration from Disk but still can't see any entries in the Failure Cause Management view.

n_o_adam@hotmail.com (JIRA)

unread,
Nov 4, 2019, 4:11:02 AM11/4/19
to jenkinsc...@googlegroups.com

You have to restart Jenkins. "Reload from Disk" doesn't do the Job in this case.

steve.graham@siemens.com (JIRA)

unread,
Nov 4, 2019, 4:41:12 PM11/4/19
to jenkinsc...@googlegroups.com

ok - thanks. I got my build failure list from 1 year ago back again.
BFA version is now 1.24. , jenkins is 2.202 ( just about to go up to 2.203 )
I tried changing the global config and my build-failure list is still there.
Relieved but still lost any additions I made in the last year.

it@mockies.de (JIRA)

unread,
Apr 23, 2020, 9:09:04 AM4/23/20
to jenkinsc...@googlegroups.com

I just noticed that the configuration was removed in my instance a while back.  Just wanted to drop a note that if you happen to have the "build configuration history" plug-in installed, a backup of build-failure-analyzer.xml exists and can be restored to the exact version before the broken update (go to https://<yourserver>/jobConfigHistory/history?name=build-failure-analyzer)

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages