com.lookout.jenkins
Class EnvironmentScript
java.lang.Object
hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>
hudson.tasks.BuildWrapper
com.lookout.jenkins.EnvironmentScript
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.BuildWrapper>
public class EnvironmentScript
- extends hudson.tasks.BuildWrapper
Runs a specific chunk of code before each build, parsing output for new environment variables.
- Author:
- Jørgen P. Tjernø
| Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper |
hudson.tasks.BuildWrapper.Environment |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
|
Method Summary |
String[] |
buildCommandLine(hudson.FilePath scriptFile)
|
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)
|
| Methods inherited from class hudson.tasks.BuildWrapper |
all, decorateLauncher, decorateLogger, getProjectAction, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, setUp |
| Methods inherited from class hudson.model.AbstractDescribableImpl |
getDescriptor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnvironmentScript
@DataBoundConstructor
public EnvironmentScript(String script)
getScript
public String getScript()
- We'll use this from the config.jelly.
setUp
public hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
- Overrides:
setUp in class hudson.tasks.BuildWrapper
- Throws:
IOException
InterruptedException
buildCommandLine
public String[] buildCommandLine(hudson.FilePath scriptFile)
Copyright © 2004-2012. All Rights Reserved.