public class ThemisRefreshNotifier extends BaseThemisNotifier<ThemisRefreshAction> implements jenkins.tasks.SimpleBuildStep
Notifier and
SimpleBuildStep, so it can work as a post build action in a freestyle project or as a build step in a
pipeline.
Pipeline can use the keyword themisRefresh:
themisRefresh(instanceName: 'Some instance', projectKey: 'key')
| Modifier and Type | Class and Description |
|---|---|
static class |
ThemisRefreshNotifier.Descriptor
Descriptor for
ThemisRefreshNotifier. |
BaseThemisNotifier.BaseThemisNotifierDescriptorhudson.tasks.Publisher.DescriptorExtensionListImpljenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactoryaction| Constructor and Description |
|---|
ThemisRefreshNotifier(String instanceName,
String projectKey)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getProjectKey() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
void |
perform(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener taskListener)
Delegates to the inner action's
perform. |
getInstanceName, isFailBuild, isOnlyOnSuccess, perform, setFailBuild, setOnlyOnSuccessall, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectAction, getProjectActions, perform, prebuild@DataBoundConstructor public ThemisRefreshNotifier(String instanceName, String projectKey)
instanceName - the name of the Themis instance to use, as specified in the Jenkins global configurationprojectKey - the unique key of the project to refreshpublic String getProjectKey()
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService in interface hudson.tasks.BuildSteppublic void perform(@Nonnull hudson.model.Run<?,?> run, @Nonnull hudson.FilePath workspace, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener taskListener)
perform.perform in interface jenkins.tasks.SimpleBuildSteprun - workspace - launcher - taskListener - ThemisAction.perform(Run, FilePath, TaskListener)Copyright © 2016–2018. All rights reserved.