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,
String scriptType,
boolean runOnlyOnParent,
boolean hideEnvironmentVariablesValues) |
| 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 if
onlyRunOnParent is true.
|
hudson.model.Descriptor<hudson.tasks.BuildWrapper> |
getDescriptor() |
String |
getScript()
We'll use this from the config.jelly.
|
String |
getScriptType()
We will use this from the config.jelly.
|
boolean |
isHideEnvironmentVariablesValues() |
boolean |
isRunOnlyOnParent() |
hudson.tasks.BuildWrapper.Environment |
setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
public String getScript()
public String getScriptType()
public boolean isRunOnlyOnParent()
MatrixBuild parent, or
on the individual MatrixRun
s.public boolean isHideEnvironmentVariablesValues()
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-2021. All Rights Reserved.