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: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 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.
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)