Class TriggerPRLabelBranchProperty
- 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.TriggerPRLabelBranchProperty
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<jenkins.branch.BranchProperty>
public class TriggerPRLabelBranchProperty extends TriggerBranchProperty
Allows a GitHub pull request comment to trigger an immediate build based on a comment string.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TriggerPRLabelBranchProperty.DescriptorImpl
-
Nested 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
Constructors Constructor Description TriggerPRLabelBranchProperty(String label)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLabel()
The comment body to trigger a new build on.<P extends Job<P,B>,B extends Run<P,B>>
jenkins.branch.JobDecorator<P,B>jobDecorator(Class<P> clazz)
-
Methods inherited from class com.adobe.jenkins.github_pr_comment_build.TriggerBranchProperty
getMinimumPermissions, isAllowUntrusted, setAllowUntrusted, setMinimumPermissions
-
-
-
-
Constructor Detail
-
TriggerPRLabelBranchProperty
@DataBoundConstructor public TriggerPRLabelBranchProperty(String label)
Constructor.- Parameters:
label
- the comment body to trigger a new build on
-
-
Method Detail
-
getLabel
public String getLabel()
The comment body to trigger a new build on.- Returns:
- the comment body to use
-
jobDecorator
public <P extends Job<P,B>,B extends Run<P,B>> jenkins.branch.JobDecorator<P,B> jobDecorator(Class<P> clazz)
- Overrides:
jobDecorator
in classTriggerBranchProperty
-
-