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

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

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: scm-api-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: