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/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
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
Setter for stapler to set the username of the sudo user. -
decorateContext
protected void decorateContext(jenkins.scm.api.trait.SCMSourceContext<?, ?> context) - Overrides:
decorateContext
in classjenkins.scm.api.trait.SCMSourceTrait
-
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.
-