diff --git a/src/main/java/com/dabsquared/gitlabjenkins/GitLabPushTrigger.java b/src/main/java/com/dabsquared/gitlabjenkins/GitLabPushTrigger.java index 5266c5e..cff6de3 100644 --- a/src/main/java/com/dabsquared/gitlabjenkins/GitLabPushTrigger.java +++ b/src/main/java/com/dabsquared/gitlabjenkins/GitLabPushTrigger.java @@ -294,7 +294,8 @@ public class GitLabPushTrigger extends Trigger> { if (!gitlabHostUrl.isEmpty() && (null != sourceRepository)) { List projects = getGitlab().instance().getProjects(); for (GitlabProject project : projects) { - if(project.getSshUrl().equalsIgnoreCase(sourceRepository.toString())){ + if(project.getSshUrl().equalsIgnoreCase(sourceRepository.toString()) || + project.getHttpUrl().equalsIgnoreCase(sourceRepository.toString())){ //Get all branches of project List branches = getGitlab().instance().getBranches(project); for (GitlabBranch branch : branches){