com.lookout.jenkins
Class EnvironmentScript

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>
      extended by hudson.tasks.BuildWrapper
          extended by 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 Class Summary
static class EnvironmentScript.DescriptorImpl
          Descriptor for EnvironmentScript.
 
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
EnvironmentScript(String script)
           
 
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
 

Constructor Detail

EnvironmentScript

@DataBoundConstructor
public EnvironmentScript(String script)
Method Detail

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.