Class InheritanceBuild.InheritanceBuildExecution
- java.lang.Object
-
- hudson.model.Run.RunExecution
-
- hudson.model.Run.Runner
-
- hudson.model.AbstractBuild.AbstractBuildExecution
-
- hudson.model.AbstractBuild.AbstractRunner
-
- hudson.model.Build.BuildExecution
-
- hudson.plugins.project_inheritance.projects.InheritanceBuild.InheritanceBuildExecution
-
- Enclosing class:
- InheritanceBuild
protected class InheritanceBuild.InheritanceBuildExecution extends Build.BuildExecution
-
-
Field Summary
-
Fields inherited from class hudson.model.AbstractBuild.AbstractBuildExecution
launcher, listener
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedInheritanceBuildExecution()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanUp(BuildListener listener)protected WorkspaceList.LeasedecideWorkspace(Node n, WorkspaceList wsl)This function will check if the parent project is set up to construct the workspace path from a string containing assigned variables, instead of a fixed path.protected ResultdoRun(BuildListener listener)-
Methods inherited from class hudson.model.Build.BuildExecution
post2
-
Methods inherited from class hudson.model.AbstractBuild.AbstractBuildExecution
createLauncher, defaultCheckout, getCurrentNode, getLauncher, getListener, perform, performAllBuildStep, performAllBuildStep, performAllBuildSteps, performAllBuildSteps, post, preBuild, preBuild, preBuild, run
-
Methods inherited from class hudson.model.Run.RunExecution
getAttributes, getBuild, getProject
-
-
-
-
Method Detail
-
doRun
protected Result doRun(BuildListener listener) throws Exception
- Overrides:
doRunin classBuild.BuildExecution- Throws:
Exception
-
cleanUp
public void cleanUp(@Nonnull BuildListener listener) throws Exception
- Overrides:
cleanUpin classBuild.BuildExecution- Throws:
Exception
-
decideWorkspace
protected WorkspaceList.Lease decideWorkspace(Node n, WorkspaceList wsl) throws InterruptedException, IOException
This function will check if the parent project is set up to construct the workspace path from a string containing assigned variables, instead of a fixed path.This means that multiple projects can share their workspace, as long as they use the same parameter values. This is highly useful for projects that have to check-out code from large repositories or are making use of a lot of common files.
If the project does not have the property set, it falls back to the native Jenkins approach.
TODO: This might be useful to be sent upstream as a Jenkins-core feature!
- Overrides:
decideWorkspacein classAbstractBuild.AbstractBuildExecution- Throws:
InterruptedExceptionIOException
-
-