Hi, Kohsuke I write a plugin.It‘s function; svn checkout then exec assign build。 my test code:
public class CheckoutTask implements FileCallable<Boolean> { public Boolean invoke(File workspace, VirtualChannel channel) throws IOException { // This here code is executed on the slave. // Call the library method to check out the files System.out.print("aaa"); return true; } } public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener) throws IOException, InterruptedException { final long serialVersionUID = 8158155902777163137L; CheckoutTask task = new CheckoutTask(); return workspace.act(task); // The CheckoutTask.invoke() method is now // invoked } Exception: hudson.util.IOException2: remote file operation failed: e:\JenkinsHome-2\workspace\c at hudson.remoting.Channel@10f932a:test-89 at hudson.FilePath.act(FilePath.java:779) at hudson.FilePath.act(FilePath.java:765) at com.mycom.scm.jenkins.plugins.IfmConfigBuilder.checkout(IfmConfigBuilder.java:470) at com.mycom.scm.jenkins.plugins.IfmConfigBuilder.perform(IfmConfigBuilder.java:152) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.Build$RunnerImpl.build(Build.java:178) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:462) at hudson.model.Run.run(Run.java:1404) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@1c806f3 at hudson.remoting.UserRequest.serialize(UserRequest.java:166) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:680) at hudson.FilePath.act(FilePath.java:772) ... 12 more Caused by: java.io.NotSerializableException: com.mycom.scm.jenkins.plugins.IfmConfigBuilder at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) ... 15 more IfmConfigBuilder perform execMain method is error!三月 22, 2013 9:55:07 上午 hudson.model.Run run 信息: c #23 main build action completed: SUCCESS weibo: http://www.weibo.com/u/2158124217 <http://weibo.com/n/codyzhang> Best Regards, --Cody.Zhang -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.