Skip to content
Permalink
Browse files

Fix JENKINS-12878

  • Loading branch information...
gboissinot committed Apr 24, 2012
1 parent 09b109c commit 758114315ec525d37179cb1266e5e30a989e7b4e
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/main/java/org/jenkinsci/plugins/envinject/EnvInjectAction.java
@@ -61,10 +61,20 @@ public Object getTarget() {

@SuppressWarnings("unused")
private Object writeReplace() throws ObjectStreamException {

if (envMap == null) {
return this;
}

if (envMap.size() == 0) {
return this;
}

try {
EnvInjectSaveable dao = new EnvInjectSaveable();
if (rootDir == null) {
dao.saveEnvironment(build.getRootDir(), envMap);
return this;
}
dao.saveEnvironment(rootDir, envMap);
} catch (EnvInjectException e) {

0 comments on commit 7581143

Please sign in to comment.
You can’t perform that action at this time.