Package nz.co.jammehcow.jenkinsdiscord
Class WebhookPublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
nz.co.jammehcow.jenkinsdiscord.WebhookPublisher
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
Author: jammehcow.
Date: 22/04/17.
-
Nested Class Summary
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 inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
ConstructorDescriptionWebhookPublisher
(String webhookURL, String thumbnailURL, boolean sendOnStateChange, String statusTitle, String notes, String branchName, String customAvatarUrl, String customUsername, boolean sendOnStateFailed, boolean sendOnlyFailed, boolean enableUrlLinking, boolean enableArtifactList, boolean enableFooterInfo, boolean showChangeset, boolean sendLogFile, boolean sendStartNotification, String scmWebUrl) -
Method Summary
Modifier and TypeMethodDescriptiongetNotes()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
perform
(AbstractBuild build, Launcher launcher, BuildListener listener) boolean
prebuild
(AbstractBuild<?, ?> build, BuildListener listener) void
setDynamicFieldContainer
(String fieldsString) Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform
-
Constructor Details
-
WebhookPublisher
@DataBoundConstructor public WebhookPublisher(String webhookURL, String thumbnailURL, boolean sendOnStateChange, String statusTitle, String notes, String branchName, String customAvatarUrl, String customUsername, boolean sendOnStateFailed, boolean sendOnlyFailed, boolean enableUrlLinking, boolean enableArtifactList, boolean enableFooterInfo, boolean showChangeset, boolean sendLogFile, boolean sendStartNotification, String scmWebUrl)
-
-
Method Details
-
getWebhookURL
-
getBranchName
-
getStatusTitle
-
getCustomAvatarUrl
-
getCustomUsername
-
setDynamicFieldContainer
-
getDynamicFieldContainer
-
getNotes
-
getThumbnailURL
-
isSendOnStateChange
public boolean isSendOnStateChange() -
isSendOnlyFailed
public boolean isSendOnlyFailed() -
isEnableUrlLinking
public boolean isEnableUrlLinking() -
isEnableArtifactList
public boolean isEnableArtifactList() -
isShowChangeset
public boolean isShowChangeset() -
isSendLogFile
public boolean isSendLogFile() -
isSendStartNotification
public boolean isSendStartNotification() -
getScmWebUrl
-
needsToRunAfterFinalized
public boolean needsToRunAfterFinalized()- Overrides:
needsToRunAfterFinalized
in classPublisher
-
prebuild
- Specified by:
prebuild
in interfaceBuildStep
- Overrides:
prebuild
in classBuildStepCompatibilityLayer
-
perform
public boolean perform(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException - Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
IOException
InterruptedException
-
getRequiredMonitorService
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classNotifier
-