From 127238cf00816e2fdaee5528fb57cb9d799c017c Mon Sep 17 00:00:00 2001 From: Jon Fogh Date: Mon, 29 May 2017 15:18:14 +0200 Subject: Add support for Jenkins pipelines --- .../bitbucketpullrequestbuilder/BitbucketBuildTrigger.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketBuildTrigger.java b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketBuildTrigger.java index bf3fd64..533eef1 100644 --- a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketBuildTrigger.java +++ b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketBuildTrigger.java @@ -17,6 +17,7 @@ import jenkins.model.Jenkins; import jenkins.model.ParameterizedJobMixIn; import net.sf.json.JSONObject; import org.apache.commons.lang.StringUtils; +import org.jenkinsci.Symbol; import org.kohsuke.stapler.DataBoundConstructor; import org.kohsuke.stapler.StaplerRequest; @@ -56,7 +57,6 @@ public class BitbucketBuildTrigger extends Trigger> { transient private BitbucketPullRequestsBuilder bitbucketPullRequestsBuilder; - @Extension public static final BitbucketBuildTriggerDescriptor descriptor = new BitbucketBuildTriggerDescriptor(); @DataBoundConstructor @@ -299,6 +299,8 @@ public class BitbucketBuildTrigger extends Trigger> { super.stop(); } + @Extension + @Symbol("bitbucketpr") public static final class BitbucketBuildTriggerDescriptor extends TriggerDescriptor { public BitbucketBuildTriggerDescriptor() { load(); -- cgit v1.2.3