public class IntegrityCheckpointAction extends hudson.tasks.Notifier implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
IntegrityCheckpointAction.IntegrityCheckpointDescriptorImpl
The relationship of Descriptor and IntegrityCheckpointAction (the describable) is akin to class
and object.
|
hudson.tasks.Publisher.DescriptorExtensionListImpl
Modifier and Type | Field and Description |
---|---|
static IntegrityCheckpointAction.IntegrityCheckpointDescriptorImpl |
CHECKPOINT_DESCRIPTOR |
Constructor and Description |
---|
IntegrityCheckpointAction(String serverConfig,
String checkpointLabel) |
Modifier and Type | Method and Description |
---|---|
static String |
evalGroovyExpression(Map<String,String> env,
String expression)
Utility function to convert a groovy expression to a string
|
String |
getCheckpointLabel()
Returns the label pattern for the Checkpoint
|
String |
getConfigurationName()
Returns the build configuration name for this project
|
hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> |
getDescriptor()
Return the instance of DescriptorImpl object for this class
|
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService()
Returns the build step we're monitoring
|
String |
getServerConfig()
Returns the simple server configuration name
|
static String |
isInvalidTag(String checkpointLabel)
Checks if the given value is a valid Integrity Label.
|
boolean |
needsToRunAfterFinalized()
Toggles whether or not this needs to run after build is finalized
|
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Executes the actual Integrity Checkpoint operation
|
void |
setCheckpointLabel(String checkpointLabel)
Sets the label for the Checkpoint
|
void |
setServerConfig(String serverConfig)
Sets the simple server configuration name
|
@Extension public static final IntegrityCheckpointAction.IntegrityCheckpointDescriptorImpl CHECKPOINT_DESCRIPTOR
public static String evalGroovyExpression(Map<String,String> env, String expression) throws Exception
env
- Environment containing the name/value pairs for substitutionexpression
- Groovy expression stringException
public static String isInvalidTag(String checkpointLabel)
checkpointLabel
- The checkpoint label namepublic String getCheckpointLabel()
public void setCheckpointLabel(String checkpointLabel)
checkpointLabel
- The Checkpoint Labelpublic String getServerConfig()
public void setServerConfig(String serverConfig)
serverConfig
- public String getConfigurationName()
public boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws InterruptedException, IOException
perform
in interface hudson.tasks.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
InterruptedException
IOException
public boolean needsToRunAfterFinalized()
needsToRunAfterFinalized
in class hudson.tasks.Publisher
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface hudson.tasks.BuildStep
public hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Publisher>
getDescriptor
in class hudson.tasks.Notifier
Copyright © 2016–2024. All rights reserved.