diff --git a/src/test/java/org/jenkinsci/plugins/junitrealtimetestreporter/storage/H2JunitTestResultStorage.java b/src/test/java/org/jenkinsci/plugins/junitrealtimetestreporter/storage/H2JunitTestResultStorage.java index 2fc796c..591d852 100644 --- a/src/test/java/org/jenkinsci/plugins/junitrealtimetestreporter/storage/H2JunitTestResultStorage.java +++ b/src/test/java/org/jenkinsci/plugins/junitrealtimetestreporter/storage/H2JunitTestResultStorage.java @@ -18,6 +18,7 @@ import hudson.tasks.junit.TestResultSummary; import hudson.tasks.junit.TrendTestResultSummary; import hudson.tasks.test.PipelineTestDetails; +import hudson.util.XStream2; import io.jenkins.plugins.junit.storage.JunitTestResultStorage; import io.jenkins.plugins.junit.storage.JunitTestResultStorageDescriptor; import io.jenkins.plugins.junit.storage.TestResultImpl; @@ -731,7 +732,7 @@ static class LocalConnectionSupplier extends ConnectionSupplier { */ static class RemoteConnectionSupplier extends ConnectionSupplier implements SerializableOnlyOverRemoting { - private static final XStream XSTREAM = new XStream(); + private static final XStream XSTREAM = new XStream2(); private final String databaseXml; static {