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 void
cleanUp()
Extension counterpart ofBuildFlowScriptExtension.cleanUpThread()
.void
filterEnvironment(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.void
init()
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:BuildFlowScriptExtension
Extension counterpart ofBuildFlowScriptExtension.initThread()
.- Specified by:
init
in classBuildFlowScriptExtension
-
cleanUp
public void cleanUp()
Description copied from class:BuildFlowScriptExtension
Extension counterpart ofBuildFlowScriptExtension.cleanUpThread()
.- Specified by:
cleanUp
in classBuildFlowScriptExtension
-
filterEnvironment
public void filterEnvironment(Map<String,String> env)
Description copied from class:BuildFlowScriptExtension
Override this method to filter environment variables set at the beginning of the script.Variables can be added, modified or removed.
- Specified by:
filterEnvironment
in 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:BuildFlowScriptExtension
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.If the extension does not handle that step type, it must return an empty list.
- Specified by:
getScriptsFor
in 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
MetaScript
instances, may be empty, but never null.
-
getDependentProjects
public List<AbstractProject<?,?>> getDependentProjects(AbstractProject<?,?> p)
Description copied from class:BuildFlowScriptExtension
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.- Specified by:
getDependentProjects
in 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)
-
-