Package com.gitee.jenkins.publisher
Class GiteeMessagePublisher
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Notifier
-
- com.gitee.jenkins.publisher.PullRequestNotifier
-
- com.gitee.jenkins.publisher.GiteeMessagePublisher
-
- All Implemented Interfaces:
ExtensionPoint
,hudson.matrix.MatrixAggregatable
,Describable<Publisher>
,BuildStep
public class GiteeMessagePublisher extends PullRequestNotifier
- Author:
- Nikolay Ustinov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GiteeMessagePublisher.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 inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description GiteeMessagePublisher()
GiteeMessagePublisher(boolean onlyForFailure, boolean replaceSuccessNote, boolean replaceFailureNote, boolean replaceAbortNote, boolean replaceUnstableNote, String successNoteText, String failureNoteText, String abortNoteText, String unstableNoteText)
Deprecated.useGiteeMessagePublisher()
with setters to configure an instance of this class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAbortNoteText()
String
getFailureNoteText()
static GiteeMessagePublisher
getFromJob(Job<?,?> job)
String
getSuccessNoteText()
String
getUnstableNoteText()
boolean
isOnlyForFailure()
boolean
isReplaceAbortNote()
boolean
isReplaceFailureNote()
boolean
isReplaceSuccessNote()
boolean
isReplaceUnstableNote()
protected void
perform(Run<?,?> build, TaskListener listener, GiteeClient client, PullRequest pullRequest)
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.gitee.jenkins.publisher.PullRequestNotifier
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 Detail
-
GiteeMessagePublisher
@Deprecated public GiteeMessagePublisher(boolean onlyForFailure, boolean replaceSuccessNote, boolean replaceFailureNote, boolean replaceAbortNote, boolean replaceUnstableNote, String successNoteText, String failureNoteText, String abortNoteText, String unstableNoteText)
Deprecated.useGiteeMessagePublisher()
with setters to configure an instance of this class.
-
GiteeMessagePublisher
@DataBoundConstructor public GiteeMessagePublisher()
-
-
Method Detail
-
getFromJob
public static GiteeMessagePublisher getFromJob(Job<?,?> job)
-
isOnlyForFailure
public boolean isOnlyForFailure()
-
isReplaceSuccessNote
public boolean isReplaceSuccessNote()
-
isReplaceFailureNote
public boolean isReplaceFailureNote()
-
isReplaceAbortNote
public boolean isReplaceAbortNote()
-
isReplaceUnstableNote
public boolean isReplaceUnstableNote()
-
getSuccessNoteText
public String getSuccessNoteText()
-
getFailureNoteText
public String getFailureNoteText()
-
getAbortNoteText
public String getAbortNoteText()
-
getUnstableNoteText
public String 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
@DataBoundSetter public void setSuccessNoteText(String successNoteText)
-
setFailureNoteText
@DataBoundSetter public void setFailureNoteText(String failureNoteText)
-
setAbortNoteText
@DataBoundSetter public void setAbortNoteText(String abortNoteText)
-
setUnstableNoteText
@DataBoundSetter public void setUnstableNoteText(String unstableNoteText)
-
perform
protected void perform(Run<?,?> build, TaskListener listener, GiteeClient client, PullRequest pullRequest)
- Specified by:
perform
in classPullRequestNotifier
-
-