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.DisposerNested classes/interfaces inherited from class hudson.tasks.BuildWrapper
BuildWrapper.EnvironmentNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvoidsetUp(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, setUpMethods inherited from class hudson.tasks.BuildWrapper
all, getProjectAction, setUpMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
ParentFolderBuildWrapper
@DataBoundConstructor public ParentFolderBuildWrapper()
-
-
Method Details
-
runPreCheckout
protected boolean runPreCheckout()- Overrides:
runPreCheckoutin classSimpleBuildWrapper
-
setUp
public void setUp(SimpleBuildWrapper.Context context, Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment) throws IOException, InterruptedException- Overrides:
setUpin classSimpleBuildWrapper- Throws:
IOExceptionInterruptedException
-