Class LogCommentTrait

java.lang.Object
hudson.model.AbstractDescribableImpl<T>
jenkins.scm.api.trait.SCMTrait<jenkins.scm.api.trait.SCMSourceTrait>
jenkins.scm.api.trait.SCMSourceTrait
io.jenkins.plugins.gitlabbranchsource.LogCommentTrait
All Implemented Interfaces:
ExtensionPoint, Describable<jenkins.scm.api.trait.SCMSourceTrait>

public class LogCommentTrait extends jenkins.scm.api.trait.SCMSourceTrait
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Our descriptor.

    Nested classes/interfaces inherited from interface hudson.ExtensionPoint

    ExtensionPoint.LegacyInstancesAreScopedToHudson
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for stapler.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    decorateContext(jenkins.scm.api.trait.SCMSourceContext<?,?> context)
     
    boolean
    Getter method for logging successful build.
    Getter method for username of sudo user.
    void
    setLogSuccess(boolean logSuccess)
    Setter for stapler to enable logging of successful builds.
    void
    setSudoUser(String sudoUser)
    Setter for stapler to set the username of the sudo user.

    Methods inherited from class jenkins.scm.api.trait.SCMSourceTrait

    _for, _for, all, applyToBuilder, applyToContext, applyToObserver, decorateBuilder, decorateObserver, getDescriptor, includeCategory, isCategoryEnabled

    Methods inherited from class jenkins.scm.api.trait.SCMTrait

    asSetList, asSetList, find

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LogCommentTrait

      @DataBoundConstructor public LogCommentTrait()
      Constructor for stapler.
  • Method Details

    • setLogSuccess

      @DataBoundSetter public void setLogSuccess(boolean logSuccess)
      Setter for stapler to enable logging of successful builds.
    • setSudoUser

      @DataBoundSetter public void setSudoUser(@NonNull String sudoUser)
      Setter for stapler to set the username of the sudo user.
    • decorateContext

      protected void decorateContext(jenkins.scm.api.trait.SCMSourceContext<?,?> context)
      Overrides:
      decorateContext in class jenkins.scm.api.trait.SCMSourceTrait
    • getSudoUser

      @NonNull public String getSudoUser()
      Getter method for username of sudo user.
      Returns:
      username of sudo user.
    • getLogSuccess

      public boolean getLogSuccess()
      Getter method for logging successful build.
      Returns:
      true if logs of successful build required.