-
New Feature
-
Resolution: Fixed
-
Minor
-
None
SCM plugins often need to maintain a list of SCM servers, and as such need an API to take an URL and turn it into a reasonable suggestion of a display name to cover the cases where the user doesn't bother to provide a display name.
Acceptance criteria:
- The API will only process the hostname part of the supplied URLs
- In cases where no sensible name can be generated, the API returns a null response
- The API shall remove public TLDs and well known public SLDs from the hostname.
- The API will remove a caller provided list of well known prefixes from the hostname.
- The hostname shall be punycode decoded if necessary
Code changed in jenkins
User: Stephen Connolly
Path:
pom.xml
src/main/java/org/jenkinsci/plugin/gitea/servers/GiteaServer.java
http://jenkins-ci.org/commit/gitea-plugin/1a9e01772319eab522a63a5d05cd8f1a1ca8fd7a
Log:
JENKINS-45436Pick up SCMName API