Class ShellBuildFlow
- java.lang.Object
 - 
- hudson.plugins.project_inheritance.projects.view.BuildFlowScriptExtension
 - 
- hudson.plugins.project_inheritance.projects.view.scripts.ShellBuildFlow
 
 
 
- 
- All Implemented Interfaces:
 ExtensionPoint
@Extension public class ShellBuildFlow extends BuildFlowScriptExtension
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ShellBuildFlow() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanUp()Extension counterpart ofBuildFlowScriptExtension.cleanUpThread().voidfilterEnvironment(Map<String,String> env)Override this method to filter environment variables set at the beginning of the script.List<AbstractProject<?,?>>getDependentProjects(AbstractProject<?,?> p)This method returns the dependent projects and will be called byBuildFlowScriptExtension.getDependentProjectsFor(AbstractProject, Map), so that the individual extension does not have to care about versioning.List<MetaScript>getScriptsFor(File prefix, AbstractProject<?,?> project, AbstractBuild<?,?> build, Builder step, Map<String,String> env, AtomicInteger cnt)This method asks the extension to handle the given builder and return a valid set of scripts along with some metadata of how to handle it.voidinit()Extension counterpart ofBuildFlowScriptExtension.initThread().- 
Methods inherited from class hudson.plugins.project_inheritance.projects.view.BuildFlowScriptExtension
all, cleanUpThread, filterEnv, getDependentProjectsFor, getScriptsFor, initThread 
 - 
 
 - 
 
- 
- 
Method Detail
- 
init
public void init()
Description copied from class:BuildFlowScriptExtensionExtension counterpart ofBuildFlowScriptExtension.initThread().- Specified by:
 initin classBuildFlowScriptExtension
 
- 
cleanUp
public void cleanUp()
Description copied from class:BuildFlowScriptExtensionExtension counterpart ofBuildFlowScriptExtension.cleanUpThread().- Specified by:
 cleanUpin classBuildFlowScriptExtension
 
- 
filterEnvironment
public void filterEnvironment(Map<String,String> env)
Description copied from class:BuildFlowScriptExtensionOverride this method to filter environment variables set at the beginning of the script.Variables can be added, modified or removed.
- Specified by:
 filterEnvironmentin classBuildFlowScriptExtension- Parameters:
 env- the environment to alter. Always mutable and never null.
 
- 
getScriptsFor
public List<MetaScript> getScriptsFor(File prefix, AbstractProject<?,?> project, AbstractBuild<?,?> build, Builder step, Map<String,String> env, AtomicInteger cnt)
Description copied from class:BuildFlowScriptExtensionThis method asks the extension to handle the given builder and return a valid set of scripts along with some metadata of how to handle it.If the extension does not handle that step type, it must return an empty list.
- Specified by:
 getScriptsForin classBuildFlowScriptExtension- Parameters:
 prefix- if not null, the prefix for the script files. If null, no prefix is used.project- the project that owns the builders. Is not necessarily the parent of build.build- the build for which the scripts should be generated. Is not necessarily a build of the given project.step- the build to generate a script for.env- the environment for the build script.cnt- a counter shared between all scripts of a build, so that you unique file names can be generated more easily.- Returns:
 - a list of 
MetaScriptinstances, may be empty, but never null. 
 
- 
getDependentProjects
public List<AbstractProject<?,?>> getDependentProjects(AbstractProject<?,?> p)
Description copied from class:BuildFlowScriptExtensionThis method returns the dependent projects and will be called byBuildFlowScriptExtension.getDependentProjectsFor(AbstractProject, Map), so that the individual extension does not have to care about versioning.- Specified by:
 getDependentProjectsin classBuildFlowScriptExtension- Parameters:
 p- the project to target- Returns:
 - a list of projects, may be empty, but is never null.
 - See Also:
 BuildFlowScriptExtension.getDependentProjectsFor(AbstractProject, Map)
 
 - 
 
 -