mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
this mutator makes a testing more convenient
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13318 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
334119c1d7
commit
f4d75f11b5
1 file changed
+4
@@ -261,6 +261,10 @@ public class Maven extends Builder {
|
||||
return installations;
|
||||
}
|
||||
|
||||
public void setInstallations(MavenInstallation... installations) {
|
||||
this.installations = installations;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean configure(StaplerRequest req, JSONObject json) throws FormException {
|
||||
this.installations = req.bindJSONToList(MavenInstallation.class, json.get("maven")).toArray(new MavenInstallation[0]);
|
||||
|
||||
Reference in new issue
Block a user