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

Github Branch Source Plugin always references https://api.github.com

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • None
    • Jenkins ver. 2.189, Github Branch Plugin ver. 2.5.5
    • github-branch-source-2.5.6

      Lost ability to choose self hosted github enterprise api URL (API endpoint field) in version 2.5.5.

      Expect to be able to set "API endpoint" (apiURL in the config.xml) to company's git enterprise api url via the project setup.  In version 2.5.5 apiURL is always set to https://api.github.com

      I'm able to work around this problem by cloning existing projects.   However, making a new project does not allow me to choose our locally host github enterprise server (the API endpoint field is gone in 2.5.5) so the project fails on repository scan since it's pointed to https://api.github.com by default instead of [https://git.company.com/api/v3

      StartedStarted[Thu Aug 08 10:52:57 EDT 2019] Starting branch indexing...ERROR: [Thu Aug 08 10:52:57 EDT 2019] Could not update folder level actions from source 27a03b35-22a6-4d0c-a9f6-bc0dceb6e97bhudson.AbortException: Invalid scan credentials BUSINESS_USER/****** (BUSINESS_USER_PASS_AS_TOKEN) to connect to https://api.github.com, skipping at org.jenkinsci.plugins.github_branch_source.Connector.checkConnectionValidity(Connector.java:553) at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieveActions(GitHubSCMSource.java:1874) at jenkins.scm.api.SCMSource.fetchActions(SCMSource.java:848) at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:592) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:277) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:164) at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1026) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)[Thu Aug 08 10:52:57 EDT 2019] Finished branch indexing. Indexing took 66 msFATAL: Invalid scan credentials BUSINESS_USER/****** (BUSINESS_USER_PASS_AS_TOKEN) to connect to https://api.github.com, skippingFinished: FAILURE|https://git.company.com/api/v3]

       

        1. GHBS-2.5.4.PNG
          11 kB
          William Gillaspy
        2. GHBS-2.5.5.PNG
          16 kB
          William Gillaspy

            kshultz Karl Shultz
            wgillaspy William Gillaspy
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: