Class TriggerPRCommentBranchProperty
java.lang.Object
hudson.model.AbstractDescribableImpl<jenkins.branch.BranchProperty>
jenkins.branch.BranchProperty
com.adobe.jenkins.github_pr_comment_build.TriggerBranchProperty
com.adobe.jenkins.github_pr_comment_build.TriggerPRCommentBranchProperty
- All Implemented Interfaces:
ExtensionPoint
,Describable<jenkins.branch.BranchProperty>
Allows a GitHub pull request comment to trigger an immediate build based on a comment string.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class com.adobe.jenkins.github_pr_comment_build.TriggerBranchProperty
allowUntrusted, minimumPermissions
-
Constructor Summary
ConstructorsConstructorDescriptionTriggerPRCommentBranchProperty
(String commentBody, boolean addReaction) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether to react to the comment if a build is successfully triggered.The comment body to trigger a new build on.Methods inherited from class com.adobe.jenkins.github_pr_comment_build.TriggerBranchProperty
getMinimumPermissions, isAllowUntrusted, jobDecorator, setAllowUntrusted, setMinimumPermissions
Methods inherited from class jenkins.branch.BranchProperty
asArrayList, decorator, decorator, getDescriptor
-
Constructor Details
-
TriggerPRCommentBranchProperty
@DataBoundConstructor public TriggerPRCommentBranchProperty(String commentBody, boolean addReaction) Constructor.- Parameters:
commentBody
- the comment body to trigger a new build onaddReaction
- whether to react to the comment if a build is successfully triggered
-
-
Method Details
-
getCommentBody
The comment body to trigger a new build on.- Returns:
- the comment body to use
-
getAddReaction
public boolean getAddReaction()Whether to react to the comment if a build is successfully triggered.- Returns:
- if a reaction should be added
-