Skip to content

Commit

Permalink
[FIXED JENKINS-40914] Use Jenkins.XSTREAM2 for deserializing config f…
Browse files Browse the repository at this point in the history
…iles

Switched all XmlFile instances to use Jenkins.XSTREAM2 instead of the default one
  • Loading branch information
stephenc committed Jan 26, 2017
2 parents 1e606c9 + b74f78d commit e03e9b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -181,7 +181,7 @@ public boolean filter(Object context, Descriptor descriptor) {
*/
public static XmlFile getConfigFile() {
// TODO switch to Jenkins.getInstance() once 2.0+ is the baseline
return new XmlFile(new File(Jenkins.getActiveInstance().getRootDir(), "credentials-configuration.xml"));
return new XmlFile(Jenkins.XSTREAM2, new File(Jenkins.getActiveInstance().getRootDir(), "credentials-configuration.xml"));
}

/**
Expand Down
Expand Up @@ -123,7 +123,7 @@ public SystemCredentialsProvider() {
*/
public static XmlFile getConfigFile() {
// TODO switch to Jenkins.getInstance() once 2.0+ is the baseline
return new XmlFile(new File(Jenkins.getActiveInstance().getRootDir(), "credentials.xml"));
return new XmlFile(Jenkins.XSTREAM2, new File(Jenkins.getActiveInstance().getRootDir(), "credentials.xml"));
}

/**
Expand Down

0 comments on commit e03e9b3

Please sign in to comment.