hudson.plugins.envfile
Class EnvFileBuildWrapper
java.lang.Object
hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>
hudson.tasks.BuildWrapper
hudson.plugins.envfile.EnvFileBuildWrapper
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.BuildWrapper>
public class EnvFileBuildWrapper
- extends hudson.tasks.BuildWrapper
BuildWrapper to set environment variables from a file.
- Author:
- Anders Johansson
| 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 |
getFilePath()
Get the path to the file containing environment variables. |
void |
setFilePath(String filePath)
Get the path to the file containing environment variables. |
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 |
EnvFileBuildWrapper
@DataBoundConstructor
public EnvFileBuildWrapper(String filePath)
getFilePath
public String getFilePath()
- Get the path to the file containing environment variables.
- Returns:
- the filePath
setFilePath
public void setFilePath(String filePath)
- Get the path to the file containing environment variables.
- Parameters:
filePath - String path of the file containing environment variables
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
Copyright © 2004-2011. All Rights Reserved.