@Override public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException { try { resolve().restoreTo(workspace,listener); return true; } catch (ResolvedFailedException e) { listener.error(e.getMessage()); // stack trace is meaningless build.setResult(Result.FAILURE); return false; } }
build.setResult(Result.UNSTABLE); r = 0;
public void buildUnstable() { build.setResult(Result.UNSTABLE); } public void buildFailure() {
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { listener.getLogger().println("Simulating a specific result code "+result); build.setResult(result); return true; }
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { listener.getLogger().println("Simulating an unstable build"); build.setResult(Result.UNSTABLE); return true; }
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { listener.getLogger().println("Simulating a failure"); build.setResult(Result.FAILURE); return false; }
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { listener.getLogger().println("Simulating a specific result code " + result); build.setResult(result); return true; }
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { listener.getLogger().println("Simulating an unstable build"); build.setResult(Result.UNSTABLE); return true; }
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { listener.getLogger().println("Simulating a failure"); build.setResult(Result.FAILURE); return false; }
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { listener.getLogger().println("Simulating an unstable build"); build.setResult(Result.UNSTABLE); return true; }
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { listener.getLogger().println("Simulating a specific result code "+result); build.setResult(result); return true; }
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { listener.getLogger().println("Simulating a failure"); build.setResult(Result.FAILURE); return false; }
@Override public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { if (build.getResult().equals(Result.SUCCESS) || onFailure) { for (FilePath warFile : build.getWorkspace().list(this.war)) { if(!adapter.redeploy(warFile,build,launcher,listener)) build.setResult(Result.FAILURE); } } return true; }
@Override public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException { try { resolve().restoreTo(workspace,listener); return true; } catch (ResolvedFailedException e) { listener.error(e.getMessage()); // stack trace is meaningless build.setResult(Result.FAILURE); return false; } }
public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException { try { resolve().restoreTo(workspace, listener); return true; } catch (ResolvedFailedException e) { listener.error(e.getMessage()); // stack trace is meaningless build.setResult(Result.FAILURE); return false; } }
public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException { try { resolve().restoreTo(workspace,listener); return true; } catch (ResolvedFailedException e) { listener.error(e.getMessage()); // stack trace is meaningless build.setResult(Result.FAILURE); return false; } }
public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException { try { resolve().restoreTo(workspace,listener); return true; } catch (ResolvedFailedException e) { listener.error(e.getMessage()); // stack trace is meaningless build.setResult(Result.FAILURE); return false; } }
public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException { try { resolve().restoreTo(workspace,listener); return true; } catch (ResolvedFailedException e) { listener.error(e.getMessage()); // stack trace is meaningless build.setResult(Result.FAILURE); return false; } }
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException { PySystemState sys = new PySystemState(); sys.setCurrentWorkingDir(build.getWorkspace().getRemote()); PythonInterpreter interp = new PythonInterpreter(null, sys); interp.setOut(listener.getLogger()); interp.setErr(listener.getLogger()); interp.exec(this.getCommand()); interp.cleanup(); build.setResult(Result.SUCCESS); return true; } }