public void executeAsync(BuildCallable<?, ?> program) throws IOException { core.executeAsync(program); }
public void executeAsync(BuildCallable<?, ?> program) throws IOException { core.executeAsync(program); }
/** * Sends the collected dependencies over to the master and record them. */ @Override public boolean postBuild(MavenBuildProxy build, MavenProject pom, BuildListener listener) throws InterruptedException, IOException { build.executeAsync(new BuildCallable<Void, IOException>() { // record is transient, so needs to make a copy first private final Set<MavenDependency> d = dependencies; public Void call(MavenBuild build) throws IOException, InterruptedException { // add the action //TODO: [by yl] These actions are persisted into the build.xml of each build run - we need another //context to store these actions build.getActions().add(new MavenDependenciesRecord(build, d)); return null; } }); return true; }
/** * Sends the collected fingerprints over to the master and record them. */ public boolean postBuild(MavenBuildProxy build, MavenProject pom, BuildListener listener) throws InterruptedException, IOException { build.executeAsync(new BuildCallable<Void,IOException>() { // record is transient, so needs to make a copy first private final Map<String,String> u = used; private final Map<String,String> p = produced; public Void call(MavenBuild build) throws IOException, InterruptedException { FingerprintMap map = Hudson.getInstance().getFingerprintMap(); for (Entry<String, String> e : p.entrySet()) map.getOrCreate(build, e.getKey(), e.getValue()).add(build); for (Entry<String, String> e : u.entrySet()) map.getOrCreate(null, e.getKey(), e.getValue()).add(build); Map<String,String> all = new HashMap<String, String>(u); all.putAll(p); // add fingerprints to the build FingerprintAction.add(build, all); return null; } }); return true; }
public boolean leaveModule(MavenBuildProxy build, MavenProject pom, BuildListener listener) throws InterruptedException, IOException { if(action!=null) { // TODO: archive pom.getReporting().getOutputDirectory() build.executeAsync(new AddActionTask(action)); } action = null; return super.leaveModule(build, pom, listener); }
public boolean leaveModule(MavenBuildProxy build, MavenProject pom, BuildListener listener) throws InterruptedException, IOException { if(action!=null) { // TODO: archive pom.getReporting().getOutputDirectory() build.executeAsync(new AddActionTask(action)); } action = null; return super.leaveModule(build, pom, listener); }
/** * Sends the collected fingerprints over to the master and record them. */ public boolean postBuild(MavenBuildProxy build, MavenProject pom, BuildListener listener) throws InterruptedException, IOException { recordParents(build, pom, listener); build.executeAsync(new PostBuildCallable()); return true; }
build.executeAsync(new MavenBuildProxy.BuildCallable<Void,IOException>() { public Void call(MavenBuild build) throws IOException, InterruptedException {