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

Make git plugin browser URL guessing clearer and easier to understand

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-plugin
    • None

      Git plugin versions prior to git plugin 3.7.0 will infer the browser URL if the repository URL is a github.com URL. Git plugin 3.7.0 added browser URL inference for bitbucket.org and gitlab.com URL's.

      Stephen Connolly suggested that it would be clearer if the inference were made apparent to the user, rather than being hidden inside the plugin logic. He suggested:

      1. For regular SCM in old-style jobs... if you see the url as well-known, and the user has not configured a browser, then replace their no-browser with the well-known one in the constructor
      2. We don't need to do anything for SCMSource impls as they have their own pre-configured subclasses that do the right thing
      3. For the `git` pipeline step, have it do the inference and log the inference to the build log
      4. Make the inference logic an ExtensionPoint

            Unassigned Unassigned
            markewaite Mark Waite
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: