diff options
Diffstat (limited to 'src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketCause.java')
-rw-r--r-- | src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketCause.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketCause.java b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketCause.java index 66a0ad8..2bdc558 100644 --- a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketCause.java +++ b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketCause.java @@ -15,6 +15,7 @@ public class BitbucketCause extends Cause { private final String destinationRepositoryName; private final String pullRequestTitle; private final String commitHash; + private final String buildStartCommentId; public static final String BITBUCKET_URL = "https://bitbucket.org/"; public BitbucketCause(String sourceBranch, @@ -25,7 +26,8 @@ public class BitbucketCause extends Cause { String destinationRepositoryOwner, String destinationRepositoryName, String pullRequestTitle, - String commitHash) { + String commitHash, + String buildStartCommentId) { this.sourceBranch = sourceBranch; this.targetBranch = targetBranch; this.repositoryOwner = repositoryOwner; @@ -35,6 +37,7 @@ public class BitbucketCause extends Cause { this.destinationRepositoryName = destinationRepositoryName; this.pullRequestTitle = pullRequestTitle; this.commitHash = commitHash; + this.buildStartCommentId = buildStartCommentId; } public String getSourceBranch() { @@ -71,6 +74,8 @@ public class BitbucketCause extends Cause { public String getCommitHash() { return commitHash; } + public String getBuildStartCommentId() { return buildStartCommentId; } + @Override public String getShortDescription() { String description = "<a href=" + BITBUCKET_URL + this.getDestinationRepositoryOwner() + "/"; |