Class GitLabMessagePublisher

All Implemented Interfaces:
ExtensionPoint, hudson.matrix.MatrixAggregatable, Describable<Publisher>, BuildStep

public class GitLabMessagePublisher extends MergeRequestNotifier
Author:
Nikolay Ustinov
  • 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.
      use GitLabMessagePublisher() with setters to configure an instance of this class.
      Parameters:
      onlyForFailure - Option to only post message on failure
      replaceSuccessNote - Option to replace message on success
      replaceFailureNote - Option to replace message on failure
      replaceAbortNote - Option to replace message on abort
      replaceUnstableNote - Option to replace message on unstable
      successNoteText - Text of message for build success
      failureNoteText - Text of message for build failure
      abortNoteText - Text of message for build abort
      unstableNoteText - 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

      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, GitLabClient client, MergeRequest mergeRequest)
      Specified by:
      perform in class MergeRequestNotifier