System.err.println(build + " could not be renamed"); Util.createSymlink(builds, id, Integer.toString(number), StreamTaskListener.fromStderr());
public CpsFlowExecution create(FlowExecutionOwner handle, Action... actions) throws IOException { return create(handle, StreamTaskListener.fromStderr(), Arrays.asList(actions)); }
public synchronized PerformanceReportMap getPerformanceReportMap(boolean isInitNextLevel) { PerformanceReportMap reportMap = null; WeakReference<PerformanceReportMap> wr = this.performanceReportMap; if (wr != null) { reportMap = wr.get(); if (reportMap != null) { return reportMap; } } try { reportMap = new PerformanceReportMap(this, StreamTaskListener.fromStderr(), isInitNextLevel); } catch (IOException e) { logger.log(Level.SEVERE, "Error creating new PerformanceReportMap()", e); } this.performanceReportMap = new WeakReference<>(reportMap); return reportMap; }
System.err.println(build + " could not be renamed"); Util.createSymlink(builds, id, Integer.toString(number), StreamTaskListener.fromStderr());
private ProcReturn execCommand(boolean quiet, String... cmd) throws Exception { ByteArrayOutputStream out = new ByteArrayOutputStream(); Launcher launcher = decorator .decorate(new DummyLauncher(new StreamTaskListener(new TeeOutputStream(out, System.out))), null); ContainerExecProc proc = (ContainerExecProc) launcher .launch(launcher.new ProcStarter().pwd("/tmp").cmds(cmd).quiet(quiet)); // wait for proc to finish (shouldn't take long) while (proc.isAlive()) { Thread.sleep(100); } assertFalse("proc is alive", proc.isAlive()); int exitCode = proc.joinWithTimeout(10, TimeUnit.SECONDS, StreamTaskListener.fromStderr()); return new ProcReturn(proc, exitCode, out.toString()); }