提交 e10e0000 编写于 作者: K kohsuke

adding an entry point for improved reusability.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3776 71c3de6d-444a-0410-be80-ed276b4c234a
上级 4f1bf708
package hudson.tasks;
import hudson.model.Build;
import hudson.model.BuildListener;
import hudson.model.Project;
import hudson.Launcher;
import hudson.FilePath;
import hudson.Launcher;
import hudson.Util;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.Build;
import hudson.model.BuildListener;
import hudson.model.TaskListener;
import java.io.IOException;
import java.util.Map;
......@@ -30,7 +32,11 @@ public abstract class CommandInterpreter extends Builder {
}
public boolean perform(Build<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException {
Project proj = build.getProject();
return perform((AbstractBuild)build,launcher,(TaskListener)listener);
}
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, TaskListener listener) throws InterruptedException {
AbstractProject proj = build.getProject();
FilePath ws = proj.getWorkspace();
FilePath script=null;
try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册