Class GitLabMessagePublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
com.dabsquared.gitlabjenkins.publisher.MergeRequestNotifier
com.dabsquared.gitlabjenkins.publisher.GitLabMessagePublisher
- All Implemented Interfaces:
ExtensionPoint
,hudson.matrix.MatrixAggregatable
,Describable<Publisher>
,BuildStep
- Author:
- Nikolay Ustinov
-
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
ConstructorDescriptionGitLabMessagePublisher
(boolean onlyForFailure, boolean replaceSuccessNote, boolean replaceFailureNote, boolean replaceAbortNote, boolean replaceUnstableNote, String successNoteText, String failureNoteText, String abortNoteText, String unstableNoteText) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
protected void
perform
(Run<?, ?> build, TaskListener listener, GitLabClient client, MergeRequest mergeRequest) void
setAbortNoteText
(String abortNoteText) void
setFailureNoteText
(String failureNoteText) void
setOnlyForFailure
(boolean onlyForFailure) void
setReplaceAbortNote
(boolean replaceAbortNote) void
setReplaceFailureNote
(boolean replaceFailureNote) void
setReplaceSuccessNote
(boolean replaceSuccessNote) void
setReplaceUnstableNote
(boolean replaceUnstableNote) void
setSuccessNoteText
(String successNoteText) void
setUnstableNoteText
(String unstableNoteText) Methods inherited from class com.dabsquared.gitlabjenkins.publisher.MergeRequestNotifier
createAggregator, getRequiredMonitorService, perform
Methods inherited from class hudson.tasks.Notifier
getDescriptor
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, prebuild
-
Constructor Details
-
GitLabMessagePublisher
@Deprecated public GitLabMessagePublisher(boolean onlyForFailure, boolean replaceSuccessNote, boolean replaceFailureNote, boolean replaceAbortNote, boolean replaceUnstableNote, String successNoteText, String failureNoteText, String abortNoteText, String unstableNoteText) Deprecated.useGitLabMessagePublisher()
with setters to configure an instance of this class.- Parameters:
onlyForFailure
- Option to only post message on failurereplaceSuccessNote
- Option to replace message on successreplaceFailureNote
- Option to replace message on failurereplaceAbortNote
- Option to replace message on abortreplaceUnstableNote
- Option to replace message on unstablesuccessNoteText
- Text of message for build successfailureNoteText
- Text of message for build failureabortNoteText
- Text of message for build abortunstableNoteText
- Text of message for unstable build
-
GitLabMessagePublisher
@DataBoundConstructor public GitLabMessagePublisher()
-
-
Method Details
-
isOnlyForFailure
public boolean isOnlyForFailure() -
isReplaceSuccessNote
public boolean isReplaceSuccessNote() -
isReplaceFailureNote
public boolean isReplaceFailureNote() -
isReplaceAbortNote
public boolean isReplaceAbortNote() -
isReplaceUnstableNote
public boolean isReplaceUnstableNote() -
getSuccessNoteText
-
getFailureNoteText
-
getAbortNoteText
-
getUnstableNoteText
-
setOnlyForFailure
@DataBoundSetter public void setOnlyForFailure(boolean onlyForFailure) -
setReplaceSuccessNote
@DataBoundSetter public void setReplaceSuccessNote(boolean replaceSuccessNote) -
setReplaceFailureNote
@DataBoundSetter public void setReplaceFailureNote(boolean replaceFailureNote) -
setReplaceAbortNote
@DataBoundSetter public void setReplaceAbortNote(boolean replaceAbortNote) -
setReplaceUnstableNote
@DataBoundSetter public void setReplaceUnstableNote(boolean replaceUnstableNote) -
setSuccessNoteText
-
setFailureNoteText
-
setAbortNoteText
-
setUnstableNoteText
-
perform
protected void perform(Run<?, ?> build, TaskListener listener, GitLabClient client, MergeRequest mergeRequest) - Specified by:
perform
in classMergeRequestNotifier
-
GitLabMessagePublisher()
with setters to configure an instance of this class.