Skip to content

Commit

Permalink
Merge pull request #236 from ayufan/master
Browse files Browse the repository at this point in the history
Fix the usage of CommitStatus
  • Loading branch information
coder-hugo committed Mar 16, 2016
2 parents e2486e3 + 7beab59 commit 0b08bc0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public String toString() {
public GitlabCommitStatus createCommitStatus(GitlabAPI api, String status, String targetUrl) {
try {
if (objectAttributes.getLastCommit() != null) {
return api.createCommitStatus(sourceProject, objectAttributes.getLastCommit().getId(), status, objectAttributes.getLastCommit().getId(), "Jenkins", targetUrl, null);
return api.createCommitStatus(sourceProject, objectAttributes.getLastCommit().getId(), status, objectAttributes.getSourceBranch(), "Jenkins", targetUrl, null);
}
} catch (IOException e) {
e.printStackTrace();
Expand Down

0 comments on commit 0b08bc0

Please sign in to comment.