/** * Runs before the {@link Builder} runs (but after the checkout has occurred), and performs a set up. * * @param build * The build in progress for which an {@link Environment} object is created. * Never null. * @param launcher * This launcher can be used to launch processes for this build. * If the build runs remotely, launcher will also run a job on that remote machine. * Never null. * @param listener * Can be used to send any message. * @return * non-null if the build can continue, null if there was an error * and the build needs to be aborted. * @throws IOException * terminates the build abnormally. Hudson will handle the exception * and reports a nice error message. * @since 1.150 */ public Environment setUp( AbstractBuild build, Launcher launcher, BuildListener listener ) throws IOException, InterruptedException { if (build instanceof Build) return setUp((Build)build,launcher,listener); else throw new AssertionError("The plugin '" + this.getClass().getName() + "' still uses " + "deprecated setUp(Build,Launcher,BuildListener) method. " + "Update the plugin to use setUp(AbstractBuild, Launcher, BuildListener) instead."); }
public Environment superSetUp(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException { return super.setUp(build, launcher, listener); }
public boolean setupWrappers(final List<BuildWrapper> wrappers) throws IOException, InterruptedException { for (final BuildWrapper w : wrappers) { final Environment e = w.setUp((AbstractBuild<?, ?>) this.build, this.launcher, this.listener); if (e == null) { return false; } final List<Environment> buildEnvironments = getBuildEnvironments(); buildEnvironments.add(e); } return true; }
/** * Runs before the {@link Builder} runs, and performs a set up. * * @param build The build in progress for which an {@link Environment} * object is created. Never null. * @param launcher This launcher can be used to launch processes for this * build. If the build runs remotely, launcher will also run a job on that * remote machine. Never null. * @param listener Can be used to send any message. * @return non-null if the build can continue, null if there was an error * and the build needs to be aborted. * @throws IOException terminates the build abnormally. Hudson will handle * the exception and reports a nice error message. * @since 1.150 */ public Environment setUp(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException { if (build instanceof Build) { return setUp((Build) build, launcher, listener); } else { throw new AssertionError("The plugin '" + this.getClass().getName() + "' still uses " + "deprecated setUp(Build,Launcher,BuildListener) method. " + "Update the plugin to use setUp(AbstractBuild, Launcher, BuildListener) instead."); } }
/** * Runs before the {@link Builder} runs (but after the checkout has occurred), and performs a set up. * * @param build * The build in progress for which an {@link Environment} object is created. * Never null. * @param launcher * This launcher can be used to launch processes for this build. * If the build runs remotely, launcher will also run a job on that remote machine. * Never null. * @param listener * Can be used to send any message. * @return * non-null if the build can continue, null if there was an error * and the build needs to be aborted. * @throws IOException * terminates the build abnormally. Hudson will handle the exception * and reports a nice error message. * @since 1.150 */ public Environment setUp( AbstractBuild build, Launcher launcher, BuildListener listener ) throws IOException, InterruptedException { if (build instanceof Build) return setUp((Build)build,launcher,listener); else throw new AssertionError("The plugin '" + this.getClass().getName() + "' still uses " + "deprecated setUp(Build,Launcher,BuildListener) method. " + "Update the plugin to use setUp(AbstractBuild, Launcher, BuildListener) instead."); }
/** * Runs before the {@link Builder} runs, and performs a set up. * * @param build * The build in progress for which an {@link Environment} object is created. * Never null. * @param launcher * This launcher can be used to launch processes for this build. * If the build runs remotely, launcher will also run a job on that remote machine. * Never null. * @param listener * Can be used to send any message. * @return * non-null if the build can continue, null if there was an error * and the build needs to be aborted. * @throws IOException * terminates the build abnormally. Hudson will handle the exception * and reports a nice error message. * @since 1.150 */ public Environment setUp( AbstractBuild build, Launcher launcher, BuildListener listener ) throws IOException, InterruptedException { if (build instanceof Build) return setUp((Build)build,launcher,listener); else throw new AssertionError("The plugin '" + this.getClass().getName() + "' still uses " + "deprecated setUp(Build,Launcher,BuildListener) method. " + "Update the plugin to use setUp(AbstractBuild, Launcher, BuildListener) instead."); }
/** * Runs before the {@link Builder} runs, and performs a set up. * * @param build * The build in progress for which an {@link Environment} object is created. * Never null. * @param launcher * This launcher can be used to launch processes for this build. * If the build runs remotely, launcher will also run a job on that remote machine. * Never null. * @param listener * Can be used to send any message. * @return * non-null if the build can continue, null if there was an error * and the build needs to be aborted. * @throws IOException * terminates the build abnormally. Hudson will handle the exception * and reports a nice error message. * @since 1.150 */ public Environment setUp( AbstractBuild build, Launcher launcher, BuildListener listener ) throws IOException, InterruptedException { if (build instanceof Build) return setUp((Build)build,launcher,listener); else throw new AssertionError("The plugin '" + this.getClass().getName() + "' still uses " + "deprecated setUp(Build,Launcher,BuildListener) method. " + "Update the plugin to use setUp(AbstractBuild, Launcher, BuildListener) instead."); }
/** * Runs before the {@link Builder} runs, and performs a set up. * * @param build * The build in progress for which an {@link Environment} object is created. * Never null. * @param launcher * This launcher can be used to launch processes for this build. * If the build runs remotely, launcher will also run a job on that remote machine. * Never null. * @param listener * Can be used to send any message. * @return * non-null if the build can continue, null if there was an error * and the build needs to be aborted. * @throws IOException * terminates the build abnormally. Hudson will handle the exception * and reports a nice error message. * @since 1.150 */ public Environment setUp( AbstractBuild build, Launcher launcher, BuildListener listener ) throws IOException, InterruptedException { if (build instanceof Build) return setUp((Build)build,launcher,listener); else throw new AssertionError("The plugin '" + this.getClass().getName() + "' still uses " + "deprecated setUp(Build,Launcher,BuildListener) method. " + "Update the plugin to use setUp(AbstractBuild, Launcher, BuildListener) instead."); }
@Override public Environment setUp(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException { initPython(); if (pexec.isImplemented(0)) { return (Environment) pexec.execPython("set_up", build, launcher, listener); } else { return super.setUp(build, launcher, listener); } }
@Override public Environment setUp(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException { FilePath patch = build.getWorkspace().child(PatchParameterDefinition.LOCATION); patch.delete(); Environment env = nested.setUp(build,launcher,listener); if (patch.exists()) { listener.getLogger().println("Applying "+ PatchNote.encodeTo("a patch")); patch.act(new ApplyTask()); } return env; } };
Environment e = w.setUp(IvyBuild.this, launcher, listener); if (e == null) return (r = FAILURE);
Environment e = w.setUp(IvyBuild.this, launcher, listener); if (e == null) return (r = FAILURE);
Environment e = w.setUp(IvyBuild.this, launcher, listener); if (e == null) return (r = FAILURE);
Environment e = w.setUp(IvyModuleSetBuild.this, launcher, listener); if (e == null) return Result.FAILURE;
Environment e = w.setUp(IvyModuleSetBuild.this, launcher, listener); if (e == null) return Result.FAILURE;
BuildWrapper wrapper=value.createBuildWrapper(Promotion.this); if (wrapper!=null){ Environment e = wrapper.setUp(Promotion.this, launcher, listener); if(e==null) return Result.FAILURE;
Environment e = w.setUp(MavenBuild.this, launcher, listener); if (e == null) { return Result.FAILURE;
return super.setUp(build, launcher, listener);
Environment e = w.setUp(MavenBuild.this, launcher, listener); if (e == null) { return Result.FAILURE;
return super.setUp(build, launcher, listener);