hudson.plugins.envfile
Class EnvFileBuildWrapper

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>
      extended by hudson.tasks.BuildWrapper
          extended by 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 Class Summary
static class EnvFileBuildWrapper.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper
hudson.tasks.BuildWrapper.Environment
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
EnvFileBuildWrapper(String filePath)
           
 
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
 

Constructor Detail

EnvFileBuildWrapper

@DataBoundConstructor
public EnvFileBuildWrapper(String filePath)
Method Detail

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.