Skip to content
Permalink
Browse files

Fixed JENKINS-11439

  • Loading branch information...
gboissinot committed Oct 28, 2011
1 parent aba7ede commit f04d5d3d6113f8a6cb4f319920481dd1e3edbe29
Showing with 10 additions and 10 deletions.
  1. +10 −10 src/main/java/org/jenkinsci/plugins/envinject/EnvInjectBuilder.java
@@ -7,11 +7,10 @@
import hudson.model.*;
import hudson.tasks.BuildStepDescriptor;
import hudson.tasks.Builder;
import net.sf.json.JSONObject;
import org.jenkinsci.plugins.envinject.service.EnvInjectActionSetter;
import org.jenkinsci.plugins.envinject.service.EnvInjectEnvVars;
import org.jenkinsci.plugins.envinject.service.PropertiesVariablesRetriever;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.DataBoundConstructor;

import java.io.IOException;
import java.io.Serializable;
@@ -25,6 +24,11 @@

private EnvInjectInfo info;

@DataBoundConstructor
public EnvInjectBuilder(String propertiesFilePath, String propertiesContent) {
this.info = new EnvInjectInfo(propertiesFilePath, propertiesContent, false);
}

@SuppressWarnings("unused")
public EnvInjectInfo getInfo() {
return info;
@@ -109,6 +113,10 @@ public String getUrlName() {
return result;
}

private void setInfo() {

}

@Extension
@SuppressWarnings("unused")
public static final class DescriptorImpl extends BuildStepDescriptor<Builder> {
@@ -118,14 +126,6 @@ public String getDisplayName() {
return Messages.envinject_addVars_displayName();
}

@Override
public EnvInjectBuilder newInstance(StaplerRequest req, JSONObject formData) throws FormException {
EnvInjectBuilder envInjectBuilder = new EnvInjectBuilder();
EnvInjectInfo info = new EnvInjectInfo(formData.getString("propertiesFilePath"), formData.getString("propertiesContent"), false);
envInjectBuilder.setInfo(info);
return envInjectBuilder;
}

@Override
public String getHelpFile() {
return "/plugin/envinject/help-buildStep.html";

0 comments on commit f04d5d3

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