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 ClassesNested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
ConstructorsConstructorDescriptionWebhookPublisher(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()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanperform(AbstractBuild build, Launcher launcher, BuildListener listener) booleanprebuild(AbstractBuild<?, ?> build, BuildListener listener) voidsetDynamicFieldContainer(String fieldsString) Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, prebuildMethods 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:
needsToRunAfterFinalizedin classPublisher
-
prebuild
- Specified by:
prebuildin interfaceBuildStep- Overrides:
prebuildin classBuildStepCompatibilityLayer
-
perform
public boolean perform(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException - Specified by:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
IOExceptionInterruptedException
-
getRequiredMonitorService
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<Publisher>- Overrides:
getDescriptorin classNotifier
-