Fix finding related commit of the build

This commit is contained in:
Csaba Kozak 2016-05-11 17:56:38 +02:00
parent 32cd71c119
commit b562c93c10
1 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,9 @@ public class CommitStatusUpdater {
}
private static String getBuildRevision(Run<?, ?> build) {
return build.getAction(BuildData.class).getLastBuiltRevision().getSha1String();
BuildData action = build.getAction(BuildData.class);
return action.getLastBuild(action.getLastBuiltRevision().getSha1()).getMarked().getSha1String();
}
private static boolean existsCommit(GitLabApi client, String gitlabProjectId, String commitHash) {