Allow users to configure SCM hosts that will be ignored

XMLWordPrintable

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: github-plugin
    • None
    • github:1.34.0

      When using the GitHub plugin, if your project mixes both GitHub and non-GitHub repos (e.g. your project source is in GitHub but your Pipeline shared libraries are in Bitbucket), your Jenkins logs are polluted with endless warnings:

      WARNING c.c.jenkins.GitHubRepositoryName#create: Could not match URL ...
      

      I have seen this warning hundreds of times in the span of a few minutes on a busy master. Perhaps it would be worth simply logging this at DEBUG level rather than WARNING. Otherwise, I would propose adding a global config option where a user can list non-GitHub repos that are used in their environments, and the plugin will ignore these.

      See https://github.com/jenkinsci/github-plugin/blob/master/src/main/java/com/cloudbees/jenkins/GitHubRepositoryName.java#L86

            Assignee:
            Allan BURDAJEWICZ
            Reporter:
            Owen Mehegan
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: