Class BuildStepOperation
java.lang.Object
hudson.plugins.build_timeout.BuildTimeOutOperation
hudson.plugins.build_timeout.operations.BuildStepOperation
- All Implemented Interfaces:
ExtensionPoint
,Describable<BuildTimeOutOperation>
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorDescriptionBuildStepOperation
(BuildStep buildstep, boolean continueEvenFailed) Deprecated.BuildStepOperation
(BuildStep buildstep, boolean continueEvenFailed, boolean createLauncher) -
Method Summary
Modifier and TypeMethodDescriptionprotected Launcher
createLauncher
(AbstractBuild<?, ?> build, BuildListener listener) boolean
boolean
boolean
perform
(AbstractBuild<?, ?> build, BuildListener listener, long effectiveTimeout) Perform operation.Methods inherited from class hudson.plugins.build_timeout.BuildTimeOutOperation
getDescriptor
-
Constructor Details
-
BuildStepOperation
@DataBoundConstructor public BuildStepOperation(BuildStep buildstep, boolean continueEvenFailed, boolean createLauncher) - Parameters:
buildstep
-continueEvenFailed
-
-
BuildStepOperation
Deprecated.
-
-
Method Details
-
getBuildstep
- Returns:
- build step to perform.
-
isContinueEvenFailed
public boolean isContinueEvenFailed()- Returns:
- true to ignore build step failure.
-
isCreateLauncher
public boolean isCreateLauncher()- Returns:
- whether to create a launcher for this build step
-
createLauncher
protected Launcher createLauncher(@NonNull AbstractBuild<?, ?> build, @NonNull BuildListener listener) - Returns:
- launcher specified with launcherOption.
-
perform
public boolean perform(@NonNull AbstractBuild<?, ?> build, @NonNull BuildListener listener, long effectiveTimeout) Description copied from class:BuildTimeOutOperation
Perform operation.- Specified by:
perform
in classBuildTimeOutOperation
- Parameters:
build
- build timed outlistener
- build listener. can be used to print log.effectiveTimeout
- timeout (milliseconds)- Returns:
- false not to run subsequent operations. It also mark the build as failure.
-