提交 4d2e5e9f 编写于 作者: L lucaspanjer

[FIXED HUDSON-8133]: Add parameter definition type and job name to job API



git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@37054 71c3de6d-444a-0410-be80-ed276b4c234a
上级 b563655b
......@@ -110,6 +110,11 @@ public abstract class ParameterDefinition implements
this.description = description;
}
@Exported
public String getType() {
return this.getClass().getSimpleName();
}
@Exported
public String getName() {
return name;
......
......@@ -27,6 +27,7 @@ import net.sf.json.JSONObject;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.export.Exported;
import hudson.Extension;
......@@ -40,6 +41,7 @@ public class RunParameterDefinition extends SimpleParameterDefinition {
this.projectName = projectName;
}
@Exported
public String getProjectName() {
return projectName;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册