Skip to content

Instantly share code, notes, and snippets.

@timlinquist
Created January 9, 2012 19:46
Show Gist options
  • Save timlinquist/1584569 to your computer and use it in GitHub Desktop.
Save timlinquist/1584569 to your computer and use it in GitHub Desktop.
Valid clone urls for jenkins github hook plugin
private static final Pattern[] URL_PATTERNS = {
Pattern.compile("git@(.+):([^/]+)/([^/]+).git"),
Pattern.compile("https://[^/]+@([^/]+)/([^/]+)/([^/]+).git"),
Pattern.compile("git://([^/]+)/([^/]+)/([^/]+).git"),
Pattern.compile("ssh://git@([^/]+)/([^/]+)/([^/]+).git")
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment