diff --git a/src/main/java/com/dabsquared/gitlabjenkins/GitLabWebHook.java b/src/main/java/com/dabsquared/gitlabjenkins/GitLabWebHook.java index cd59334..58c1098 100644 --- a/src/main/java/com/dabsquared/gitlabjenkins/GitLabWebHook.java +++ b/src/main/java/com/dabsquared/gitlabjenkins/GitLabWebHook.java @@ -140,9 +140,11 @@ public class GitLabWebHook implements UnprotectedRootAction { e.printStackTrace(); throw HttpResponses.error(500,"Could not generate an image."); } - } else if(firstPath.equals("builds") && !lastPath.equals("status.json")) { + } else if((firstPath.equals("commits") || firstPath.equals("builds")) && !lastPath.equals("status.json")) { AbstractBuild build = this.getBuildBySHA1(project, lastPath, true); redirectToBuildPage(res, build); + } else{ + LOGGER.warning("Dynamic request mot met: First path: '" + firstPath + "' late path: '" + lastPath + "'"); } throw HttpResponses.ok();