Package com.mig82.folders.wrappers
Class ParentFolderBuildWrapper
java.lang.Object
hudson.model.AbstractDescribableImpl<BuildWrapper>
hudson.tasks.BuildWrapper
jenkins.tasks.SimpleBuildWrapper
com.mig82.folders.wrappers.ParentFolderBuildWrapper
- All Implemented Interfaces:
ExtensionPoint
,Describable<BuildWrapper>
A build wrapper which exposes the properties defined for a folder to all the jobs contained inside it.
Freestyle jobs must opt into using this build wrapper and pipeline jobs can access these properties by using the
custom
withFolderProperties
step.- Author:
- Miguelangel Fernandez Mendoza
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class jenkins.tasks.SimpleBuildWrapper
SimpleBuildWrapper.Context, SimpleBuildWrapper.Disposer
Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper
BuildWrapper.Environment
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
void
setUp
(SimpleBuildWrapper.Context context, Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment) Methods inherited from class jenkins.tasks.SimpleBuildWrapper
createContext, createLoggerDecorator, decorateLauncher, decorateLogger, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, requiresWorkspace, setUp, setUp
Methods inherited from class hudson.tasks.BuildWrapper
all, getProjectAction, setUp
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
ParentFolderBuildWrapper
@DataBoundConstructor public ParentFolderBuildWrapper()
-
-
Method Details
-
runPreCheckout
protected boolean runPreCheckout()- Overrides:
runPreCheckout
in classSimpleBuildWrapper
-
setUp
public void setUp(SimpleBuildWrapper.Context context, Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment) throws IOException, InterruptedException- Overrides:
setUp
in classSimpleBuildWrapper
- Throws:
IOException
InterruptedException
-