Permalink
Browse files

Fix JENKINS-14547

  • Loading branch information...
gboissinot committed Aug 4, 2012
1 parent f3e387f commit e29af0c254b965fac2d2c31321a551603c302f63
@@ -223,7 +223,7 @@ public Builder newInstance(StaplerRequest req, JSONObject formData) throws FormE
entry.setDeleteRemoteArtifactsByScript(false);
} else {
entry.setDeleteRemoteArtifactsByScript(true);
entry.setGroovyExpression(Util.fixEmpty(formData.getJSONObject("deletedRemoteArtifacts").getString("groovyExpression")));
entry.setGroovyExpression(Util.fixEmpty(formData.getJSONObject("deleteRemoteArtifactsByScript").getString("groovyExpression")));
}
builder.setEntry(entry);
return builder;
@@ -279,7 +279,7 @@ private ArtifactDeployerEntry populateAndGetEntry(JSONObject element) {
entry.setDeleteRemoteArtifactsByScript(false);
} else {
entry.setDeleteRemoteArtifactsByScript(true);
entry.setGroovyExpression(Util.fixEmpty(element.getJSONObject("deletedRemoteArtifacts").getString("groovyExpression")));
entry.setGroovyExpression(Util.fixEmpty(element.getJSONObject("deleteRemoteArtifactsByScript").getString("groovyExpression")));
}
return entry;
}

0 comments on commit e29af0c

Please sign in to comment.