Package hudson.scm
Class IntegrityCheckpointAction
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
hudson.scm.IntegrityCheckpointAction
- All Implemented Interfaces:
hudson.ExtensionPoint,hudson.model.Describable<hudson.tasks.Publisher>,hudson.tasks.BuildStep,Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe relationship of Descriptor and IntegrityCheckpointAction (the describable) is akin to class and object.Nested classes/interfaces inherited from class hudson.tasks.Publisher
hudson.tasks.Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringevalGroovyExpression(Map<String, String> env, String expression) Utility function to convert a groovy expression to a stringReturns the label pattern for the CheckpointReturns the build configuration name for this projecthudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> Return the instance of DescriptorImpl object for this classhudson.tasks.BuildStepMonitorReturns the build step we're monitoringReturns the simple server configuration namestatic StringisInvalidTag(String checkpointLabel) Checks if the given value is a valid Integrity Label.booleanToggles whether or not this needs to run after build is finalizedbooleanperform(hudson.model.AbstractBuild<?, ?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) Executes the actual Integrity Checkpoint operationvoidsetCheckpointLabel(String checkpointLabel) Sets the label for the CheckpointvoidsetServerConfig(String serverConfig) Sets the simple server configuration nameMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, prebuild
-
Field Details
-
CHECKPOINT_DESCRIPTOR
@Extension public static final IntegrityCheckpointAction.IntegrityCheckpointDescriptorImpl CHECKPOINT_DESCRIPTOR
-
-
Constructor Details
-
IntegrityCheckpointAction
-
-
Method Details
-
evalGroovyExpression
public static String evalGroovyExpression(Map<String, String> env, String expression) throws ExceptionUtility function to convert a groovy expression to a string- Parameters:
env- Environment containing the name/value pairs for substitutionexpression- Groovy expression string- Returns:
- Resolved string
- Throws:
Exception
-
isInvalidTag
Checks if the given value is a valid Integrity Label. If it's invalid, this method gives you the reason as string.- Parameters:
checkpointLabel- The checkpoint label name- Returns:
- the error message, or null if label is valid
-
getCheckpointLabel
Returns the label pattern for the Checkpoint- Returns:
- Checkpoint Label
-
setCheckpointLabel
Sets the label for the Checkpoint- Parameters:
checkpointLabel- The Checkpoint Label
-
getServerConfig
Returns the simple server configuration name- Returns:
-
setServerConfig
Sets the simple server configuration name- Parameters:
serverConfig-
-
getConfigurationName
Returns the build configuration name for this project- Returns:
-
perform
public boolean perform(hudson.model.AbstractBuild<?, ?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws InterruptedException, IOExceptionExecutes the actual Integrity Checkpoint operation- Specified by:
performin interfacehudson.tasks.BuildStep- Overrides:
performin classhudson.tasks.BuildStepCompatibilityLayer- Throws:
InterruptedExceptionIOException
-
needsToRunAfterFinalized
public boolean needsToRunAfterFinalized()Toggles whether or not this needs to run after build is finalized- Overrides:
needsToRunAfterFinalizedin classhudson.tasks.Publisher
-
getRequiredMonitorService
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()Returns the build step we're monitoring- Specified by:
getRequiredMonitorServicein interfacehudson.tasks.BuildStep
-
getDescriptor
public hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()Return the instance of DescriptorImpl object for this class- Specified by:
getDescriptorin interfacehudson.model.Describable<hudson.tasks.Publisher>- Overrides:
getDescriptorin classhudson.tasks.Notifier
-