[JIRA] (JENKINS-59782) Builds are getting disappeared after Jenkins restart when used "Performance-plugin" in post build section of Jenkins job

4 views
Skip to first unread message

sujeet.ssv@gmail.com (JIRA)

unread,
Oct 15, 2019, 2:30:03 AM10/15/19
to jenkinsc...@googlegroups.com
Sujeet Velapure created an issue
 
Jenkins / Bug JENKINS-59782
Builds are getting disappeared after Jenkins restart when used "Performance-plugin" in post build section of Jenkins job
Issue Type: Bug Bug
Assignee: Andrey Pokhilko
Components: performance-plugin
Created: 2019-10-15 06:29
Environment: Jenkins installed on Windows Server 2012 R2 Standard
I am able to reproduce this with Jenkins 2.200, 2.190.1, 2.176.2
Performance Plugin 3.17
Priority: Critical Critical
Reporter: Sujeet Velapure

Freestyle Jenkins Job:

I have a freestyle Jenkins job which I use to run for Jmeter executions and then process .csv files using Performance plugin. Everything works fine as expected unless you don't restart Jenkins. The observation is once you restart Jenkins the successful builds no longer shows up on Jenkins Job. After further investigation found that the build directory is present for respective builds however I dont see build.xml is getting generated.

In the Jenkins.err logs I could see below exceptions:

 

Oct 14, 2019 6:05:50 PM jenkins.security.ClassFilterImpl notifyRejected
WARNING: java.text.SimpleDateFormat in JRE might be dangerous, so rejecting; see https://jenkins.io/redirect/class-filter/
Oct 14, 2019 6:05:50 PM hudson.model.Run execute
SEVERE: Failed to save build record
java.io.IOException: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild
Caused by: java.lang.RuntimeException: Failed to serialize hudson.plugins.performance.actions.PerformanceBuildAction#parsers for class hudson.plugins.performance.actions.PerformanceBuildAction
Caused by: java.lang.RuntimeException: Failed to serialize hudson.plugins.performance.parsers.AbstractParser#format for class hudson.plugins.performance.parsers.JMeterCsvParser
Caused by: java.lang.UnsupportedOperationException: Refusing to marshal java.text.SimpleDateFormat for security reasons; see https://jenkins.io/redirect/class-filter/

 

Jenkins Pipeline (Scripted)

When tried with Scripted pipeline the build is not disappearing however getting marked as Failed after restarting Jenkins. Build console logs shows that Jenkins unable to resume operation due to program.dat file is missing. I am little confused here as why the already finished job is trying to resume operation.
Finished: SUCCESS
Resuming build at Mon Oct 14 18:23:39 GMT-12:00 2019 after Jenkins restart[Pipeline] End of Pipelinejava.io.FileNotFoundException: C:\Program Files (x86)\Jenkins\jobs\trial_pipeline\builds\4\program.dat (The system cannot find the file specified)
 

 

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

sujeet.ssv@gmail.com (JIRA)

unread,
Oct 15, 2019, 2:32:03 AM10/15/19
to jenkinsc...@googlegroups.com
Sujeet Velapure updated an issue
Change By: Sujeet Velapure
*Freestyle Jenkins Job:*

I have a freestyle Jenkins job which I use to run for Jmeter executions and then process .csv files using Performance plugin. Everything works fine as expected *unless you don't restart Jenkins*. The observation is once you restart Jenkins the *successful builds no longer shows up on Jenkins Job.* After further investigation found that the build directory is present for respective builds however I dont see build.xml is getting generated.


In the Jenkins.err logs I could see below exceptions:

 
{code:java}

Oct 14, 2019 6:05:50 PM jenkins.security.ClassFilterImpl notifyRejected
WARNING: java.text.SimpleDateFormat in JRE might be dangerous, so rejecting; see https://jenkins.io/redirect/class-filter/
Oct 14, 2019 6:05:50 PM hudson.model.Run execute
SEVERE: Failed to save build record
java.io.IOException: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild
Caused by: java.lang.RuntimeException: Failed to serialize hudson.plugins.performance.actions.PerformanceBuildAction#parsers for class hudson.plugins.performance.actions.PerformanceBuildAction
Caused by: java.lang.RuntimeException: Failed to serialize hudson.plugins.performance.parsers.AbstractParser#format for class hudson.plugins.performance.parsers.JMeterCsvParser
Caused by: java.lang.UnsupportedOperationException: Refusing to marshal java.text.SimpleDateFormat for security reasons; see https://jenkins.io/redirect/class-filter/
{code}
 

*Jenkins Pipeline (Scripted)*


When tried with Scripted pipeline the build is not disappearing however getting marked as Failed after restarting Jenkins. Build console logs shows that Jenkins unable to resume operation due to program.dat file is missing. I am little confused here as why the already finished job is trying to resume operation.
{code:java}
Finished: SUCCESS
Resuming build at Mon Oct 14 18:23:39 GMT-12:00 2019 after Jenkins restart[Pipeline] End of Pipelinejava.io.FileNotFoundException: C:\Program Files (x86)\Jenkins\jobs\trial_pipeline\builds\4\program.dat (The system cannot find the file specified)
{code}

 

 

sujeet.ssv@gmail.com (JIRA)

unread,
Oct 15, 2019, 2:35:03 AM10/15/19
to jenkinsc...@googlegroups.com
Sujeet Velapure updated an issue
Change By: Sujeet Velapure
Environment:
Jenkins installed on Windows Server 2012 R2 Standard
I am able to reproduce this with on Jenkins 2.200,  2.190.1, 2.176.2
Performance Plugin 3.17

sujeet.ssv@gmail.com (JIRA)

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

sujeet.ssv@gmail.com (JIRA)

unread,
Oct 15, 2019, 5:04:02 AM10/15/19
to jenkinsc...@googlegroups.com
Sujeet Velapure commented on Bug JENKINS-59782
 
Re: Builds are getting disappeared after Jenkins restart when used "Performance-plugin" in post build section of Jenkins job

After further digging I got to know this issue is linked with JEP-200, able to proceed with workaround. 

Workaround:  Start Jenkins with additional input argument as per below

-Dhudson.remoting.ClassFilter=java.text.SimpleDateFormat,java.text.DecimalFormat,java.text.DecimalFormatSymbols,java.text.DateFormatSymbols

This will whitelist above classes while executing performance-plugin and after job completion you can see build.xml also getting generated .

sujeet.ssv@gmail.com (JIRA)

unread,
Oct 15, 2019, 5:05:05 AM10/15/19
to jenkinsc...@googlegroups.com
Sujeet Velapure edited a comment on Bug JENKINS-59782
After further digging I got to know this issue is linked with JEP-200, able to proceed with workaround. 

*Workaround:*  Start Jenkins with additional input argument as per below
{code:java}
-Dhudson.remoting.ClassFilter=java.text.SimpleDateFormat,java.text.DecimalFormat,java.text.DecimalFormatSymbols,java.text.DateFormatSymbols
{code}

This will whitelist above classes while executing performance-plugin and after job completion you can see build.xml also getting generated .
Reply all
Reply to author
Forward
0 new messages