I am unable to use a bitbucket-hook with a Bitbucket server URI that contains a path that does not start with "/scm". The GitStatus.looselyMatches comparison fails.
Before the GitStatus.looselyMatches comparison, a URI is stripped of "/scm" so that the comparison does not fail (as of 1.1.8 via https://github.com/jenkinsci/bitbucket-plugin/commit/031673033c4616bdb2930feb204795b288c9fb14). This only applies if the path begins with "/scm" and does not take into account URIs that do not. Refer to https://github.com/jenkinsci/bitbucket-plugin/blob/master/src/main/java/com/cloudbees/jenkins/plugins/BitbucketJobProbe.java#L92
Example failure log (redacted):
Plugin should support URIs with a path that doesn't start with "/scm"