aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketBuilds.java
diff options
context:
space:
mode:
authorJohn Wismar <john.wismar@clearcapital.com>2014-10-13 13:57:01 -0700
committerJohn Wismar <john.wismar@clearcapital.com>2014-10-13 13:57:01 -0700
commit223cb860b0f950333d798a733919fb97be4d8f86 (patch)
treedd946d1f4d19daf07cbf50aeeddb516f769173ba /src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketBuilds.java
parentb6fd5813d742eb4bfbbfb07415707d7ed776da24 (diff)
downloadbbprb-223cb860b0f950333d798a733919fb97be4d8f86.tar.gz
added an option to check the destination branch's last commit, and rebuild if that branch has changed.
update documentation with instructions about merging before build, and to mention "Rebuild if destination branch changes?" checkbox
Diffstat (limited to 'src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketBuilds.java')
-rw-r--r--src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketBuilds.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketBuilds.java b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketBuilds.java
index 9600e26..0fa2fd0 100644
--- a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketBuilds.java
+++ b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketBuilds.java
@@ -57,6 +57,6 @@ public class BitbucketBuilds {
buildUrl = rootUrl + build.getUrl();
}
repository.deletePullRequestComment(cause.getPullRequestId(), cause.getBuildStartCommentId());
- repository.postFinishedComment(cause.getPullRequestId(), cause.getCommitHash(), result == Result.SUCCESS, buildUrl);
+ repository.postFinishedComment(cause.getPullRequestId(), cause.getSourceCommitHash(), cause.getDestinationCommitHash(), result == Result.SUCCESS, buildUrl);
}
}