Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45436

API to generate (mostly) human readable names of SCM server URLs

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • scm-api-plugin
    • 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

            stephenconnolly Stephen Connolly
            stephenconnolly Stephen Connolly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: