Skip to content

Commit

Permalink
[FIXES JENKINS-15976] After de-serializing changed job settings after…
Browse files Browse the repository at this point in the history
… "Save", the maven settings done by config-file-provider-plugin were overwritten blindly (presumably with fallback values). These fallback values should be set correctly in the constructor of the "Maven" class and do not need to be set explicitly after deserialization.
  • Loading branch information
Glöckle Bastian committed Jul 3, 2013
1 parent 184b4a9 commit 40f3b09
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/src/main/java/hudson/tasks/Maven.java
Expand Up @@ -435,10 +435,7 @@ public void setInstallations(MavenInstallation... installations) {

@Override
public Builder newInstance(StaplerRequest req, JSONObject formData) throws FormException {
Maven m = req.bindJSON(Maven.class,formData);
m.setSettings(GlobalMavenConfig.get().getSettingsProvider());
m.setGlobalSettings(GlobalMavenConfig.get().getGlobalSettingsProvider());
return m;
return req.bindJSON(Maven.class,formData);
}
}

Expand Down

0 comments on commit 40f3b09

Please sign in to comment.