hudson.tasks.BuildWrapper Java Examples
The following examples show how to use
hudson.tasks.BuildWrapper.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BuildEnvironment.java From DotCi with MIT License | 5 votes |
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; }
Example #2
Source File: BuildEnvironment.java From DotCi with MIT License | 5 votes |
public boolean initialize() throws IOException, InterruptedException { final List<BuildWrapper> wrappers = new ArrayList<>(getProject().getBuildWrappers().values()); final ParametersAction parameters = getAction(ParametersAction.class); if (parameters != null) { parameters.createBuildWrappers(this.build, wrappers); } return setupWrappers(wrappers); }
Example #3
Source File: JenkinsRule.java From jenkins-test-harness with MIT License | 4 votes |
@Override public BuildWrapper newInstance(StaplerRequest req, JSONObject formData) { throw new UnsupportedOperationException(); }
Example #4
Source File: HudsonTestCase.java From jenkins-test-harness with MIT License | 4 votes |
@Override public BuildWrapper newInstance(StaplerRequest req, JSONObject formData) { throw new UnsupportedOperationException(); }
Example #5
Source File: DynamicSubProject.java From DotCi with MIT License | 4 votes |
@Override public Map<Descriptor<BuildWrapper>, BuildWrapper> getBuildWrappers() { return getParent().getBuildWrappers(); }
Example #6
Source File: DynamicSubProject.java From DotCi with MIT License | 4 votes |
@Override public DescribableList<BuildWrapper, Descriptor<BuildWrapper>> getBuildWrappersList() { return getParent().getBuildWrappersList(); }
Example #7
Source File: BuildWrapperOrderCredentialsBindingTest.java From credentials-binding-plugin with MIT License | 4 votes |
@Override public BuildWrapper newInstance(StaplerRequest req, @Nonnull JSONObject formData) throws FormException { return new BuildWrapperOrder(); }