Skip to content

Commit

Permalink
Fix JENKINS-14547
Browse files Browse the repository at this point in the history
  • Loading branch information
gboissinot committed Aug 4, 2012
1 parent f3e387f commit e29af0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -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;
Expand Down
Expand Up @@ -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;
}
Expand Down

0 comments on commit e29af0c

Please sign in to comment.