public class EnvironmentScript
extends hudson.tasks.BuildWrapper
implements hudson.matrix.MatrixAggregatable
| Modifier and Type | Class and Description |
|---|---|
static class |
EnvironmentScript.EnvironmentScriptDescriptor
Descriptor for
EnvironmentScript. |
| Constructor and Description |
|---|
EnvironmentScript(String script,
boolean onlyRunOnParent) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
buildCommandLine(hudson.FilePath scriptFile) |
hudson.matrix.MatrixAggregator |
createAggregator(hudson.matrix.MatrixBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Create an aggregator that will calculate the environment once iff onlyRunOnParent is true.
|
hudson.model.Descriptor<hudson.tasks.BuildWrapper> |
getDescriptor() |
String |
getScript()
We'll use this from the config.jelly.
|
hudson.tasks.BuildWrapper.Environment |
setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
boolean |
shouldOnlyRunOnParent() |
@DataBoundConstructor public EnvironmentScript(String script, boolean onlyRunOnParent)
public String getScript()
public boolean shouldOnlyRunOnParent()
MatrixBuild parent, or on the individual MatrixRun
s.public hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
setUp in class hudson.tasks.BuildWrapperIOExceptionInterruptedExceptionpublic String[] buildCommandLine(hudson.FilePath scriptFile)
public hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
PersistedEnvironment) if the job has onlyRunOnParent enabled. The
subjobs ("configuration runs") will retrieve this and apply it to their environment, without performing the
calculation.createAggregator in interface hudson.matrix.MatrixAggregatablepublic hudson.model.Descriptor<hudson.tasks.BuildWrapper> getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.BuildWrapper>getDescriptor in class hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>Copyright © 2004-2015. All Rights Reserved.