[JIRA] (JENKINS-53861) Jenkins loses all InfluxDb targets in Manage Jenkins > Configure System after restart.

2 views
Skip to first unread message

pavel.shchetska@gmail.com (JIRA)

unread,
Oct 1, 2018, 4:44:02 PM10/1/18
to jenkinsc...@googlegroups.com
Pavel Shchetska created an issue
 
Jenkins / Bug JENKINS-53861
Jenkins loses all InfluxDb targets in Manage Jenkins > Configure System after restart.
Issue Type: Bug Bug
Assignee: Aleksi Simell
Components: influxdb-plugin
Created: 2018-10-01 20:43
Environment: Mac OS X 10.13.6 x86_64
Oracle jdk1.8.0_111
jenkins:2.121.2
influxdb:1.19
Labels: plugin
Priority: Major Major
Reporter: Pavel Shchetska

I have got the following behavior with the plugin. I have created new influxdb target in Manage Jenkins > Configure System and after that one became available for "Publish build data to InfluxDb target" in my job configuration. But when I have restarted aplication, Jenkins lost all InfluxDb targets in Manage Jenkins > Configure System.

 

Steps to reproduce the issue

1. clean JENKINS_HOME (rm -rf ~/.jenkins)
2. java -jar jenkins.war (instal jenkins using default configuration)
3. install influxdb plugin via Manage Jenkins > Manage Plugins
4. restart jenkins (<jenkins_url>/restart)
5. go to Manage Jenkins > Configure System, create influxdb target and click Save. The target is available for Freestyle project.
6. restart jenkins (<jenkins_url>/restart)
7. go to Manage Jenkins > Configure System. Influxdb target configuration is unavailable.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

pavel.shchetska@gmail.com (JIRA)

unread,
Oct 1, 2018, 4:48:01 PM10/1/18
to jenkinsc...@googlegroups.com

aleksi.simell@eficode.com (JIRA)

unread,
Oct 4, 2018, 7:15:02 AM10/4/18
to jenkinsc...@googlegroups.com
Aleksi Simell updated Bug JENKINS-53861
 

This was caused by a `transient` CopyOnWriteList for InfluxDB targets used in the DescriptorImpl class. Jenkins pipelines demands objects to be serializable, which CopyOnWriteList is not. Non-serializable object changed to a serializable object and removed `transient` from the target list definition. This change should fix this issue and will be available in the next release.

Change By: Aleksi Simell
Status: Open Fixed but Unreleased
Resolution: Fixed

aleksi.simell@eficode.com (JIRA)

unread,
Oct 5, 2018, 3:13:04 AM10/5/18
to jenkinsc...@googlegroups.com

aleksi.simell@eficode.com (JIRA)

unread,
Sep 4, 2019, 8:04:03 AM9/4/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages