diff --git a/test/src/main/java/org/jvnet/hudson/test/SingleFileSCM.java b/test/src/main/java/org/jvnet/hudson/test/SingleFileSCM.java index 7ace835fd31862458dd406c3cdccb48bbcce86d2..e7157b5ab85f52b16cabd03cafc0d7f435d06063 100644 --- a/test/src/main/java/org/jvnet/hudson/test/SingleFileSCM.java +++ b/test/src/main/java/org/jvnet/hudson/test/SingleFileSCM.java @@ -23,19 +23,18 @@ */ package org.jvnet.hudson.test; +import hudson.FilePath; +import hudson.Launcher; +import hudson.model.Run; +import hudson.model.TaskListener; import hudson.scm.NullSCM; import hudson.scm.SCM; -import hudson.model.AbstractBuild; -import hudson.model.BuildListener; -import hudson.Launcher; -import hudson.FilePath; - +import hudson.scm.SCMRevisionState; import java.io.File; import java.io.IOException; import java.io.OutputStream; import java.io.UnsupportedEncodingException; import java.net.URL; - import org.apache.commons.io.IOUtils; /** @@ -66,12 +65,11 @@ public class SingleFileSCM extends NullSCM { } @Override - public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changeLogFile) throws IOException, InterruptedException { + public void checkout(Run build, Launcher launcher, FilePath workspace, TaskListener listener, File changelogFile, SCMRevisionState baseline) throws IOException, InterruptedException { listener.getLogger().println("Staging "+path); OutputStream os = workspace.child(path).write(); IOUtils.write(contents, os); os.close(); - return true; } /**