Class CloudFormationPostBuildNotifier
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Notifier
-
- com.syncapse.jenkinsci.plugins.awscloudformationwrapper.CloudFormationPostBuildNotifier
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
public class CloudFormationPostBuildNotifier extends Notifier
- Author:
- amit.gilad
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CloudFormationPostBuildNotifier.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static CloudFormationPostBuildNotifier.DescriptorImpl
DESCRIPTOR
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description CloudFormationPostBuildNotifier(List<PostBuildStackBean> stacks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildStepDescriptor
getDescriptor()
Action
getProjectAction(AbstractProject<?,?> project)
Collection<? extends Action>
getProjectActions(AbstractProject<?,?> project)
BuildStepMonitor
getRequiredMonitorService()
List<PostBuildStackBean>
getStacks()
protected CloudFormation
newCloudFormation(PostBuildStackBean postBuildStackBean, AbstractBuild<?,?> build, EnvVars env, PrintStream logger)
boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
boolean
prebuild(AbstractBuild<?,?> build, BuildListener listener)
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
perform
-
-
-
-
Field Detail
-
DESCRIPTOR
@Extension public static final CloudFormationPostBuildNotifier.DescriptorImpl DESCRIPTOR
-
-
Constructor Detail
-
CloudFormationPostBuildNotifier
@DataBoundConstructor public CloudFormationPostBuildNotifier(List<PostBuildStackBean> stacks)
-
-
Method Detail
-
getStacks
public List<PostBuildStackBean> getStacks()
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
-
prebuild
public boolean prebuild(AbstractBuild<?,?> build, BuildListener listener)
- Specified by:
prebuild
in interfaceBuildStep
- Overrides:
prebuild
in classBuildStepCompatibilityLayer
-
getProjectAction
public Action getProjectAction(AbstractProject<?,?> project)
- Specified by:
getProjectAction
in interfaceBuildStep
- Overrides:
getProjectAction
in classBuildStepCompatibilityLayer
-
getProjectActions
public Collection<? extends Action> getProjectActions(AbstractProject<?,?> project)
- Specified by:
getProjectActions
in interfaceBuildStep
- Overrides:
getProjectActions
in classBuildStepCompatibilityLayer
-
perform
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
-
newCloudFormation
protected CloudFormation newCloudFormation(PostBuildStackBean postBuildStackBean, AbstractBuild<?,?> build, EnvVars env, PrintStream logger) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
getDescriptor
public BuildStepDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classNotifier
-
-