Make git plugin browser URL guessing clearer and easier to understand

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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

            Assignee:
            Unassigned
            Reporter:
            Mark Waite
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: