Skip to content

Commit 808374d

Browse files
Jason Tokophkohsuke
authored andcommitted
Adding ssh protocol url pattern to commit hook handler
1 parent e62246f commit 808374d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/com/cloudbees/jenkins/GitHubPushTrigger.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ public static boolean allowsHookUrlOverride() {
266266
private static final Pattern[] URL_PATTERNS = {
267267
Pattern.compile("[email protected]:([^/.]+)/([^/.]+).git"),
268268
Pattern.compile("https://[^/.][email protected]/([^/.]+)/([^/.]+).git"),
269-
Pattern.compile("git://github.com/([^/.]+)/([^/.]+).git")
269+
Pattern.compile("git://github.com/([^/.]+)/([^/.]+).git"),
270+
Pattern.compile("ssh://[email protected]/([^/.]+)/([^/.]+).git")
270271
};
271272
}

0 commit comments

Comments
 (0)