Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20290

GitHubException: Not Found when overriding branch on a non-default private GitHub repository for a branch plan in Bamboo

    XMLWordPrintable

Details

    Description

      Issue Summary

      GitHubException: Not Found occurs when overriding branch on a non-default private GitHub repository for a branch plan in Bamboo.

      Environment

      • Private GitHub Repository

      Steps to Reproduce

      1. Create a Bamboo plan with two private GitHub repositories with branches
        • It's likely reproducible if just the non-default repository is the private GitHub repository too.
      2. Add a Branch Plan.
      3. Navigate to the Branch Plan >> Repositories and select the non-default (second) repository.
      4. Select the branch dropdown to attempt to override it to an alternate branch.

      Expected Results

      Branch dropdown populates with the list of branches from GitHub.

      Actual Results

      Only the branch that is already selected on the repository configuration is selectable and a GitHubException: Not Found error flashes temporarily in the UI.

      The below exception is thrown in the atlassian-bamboo.log file:

      2019-02-08 12:59:35,153 WARN [http-nio-8085-exec-23] [GitHubResource] Failed to load data from GitHub.
      com.atlassian.bamboo.plugins.git.GitHubAccessor$GitHubException: Not Found
      	at com.atlassian.bamboo.plugins.git.GitHubAccessor.getJSONArrayResponseFromUrl(GitHubAccessor.java:298)
      	at com.atlassian.bamboo.plugins.git.GitHubAccessor.getFoldedListFromGitHubApi(GitHubAccessor.java:195)
      	at com.atlassian.bamboo.plugins.git.GitHubAccessor.getBranches(GitHubAccessor.java:116)
      	at com.atlassian.bamboo.plugins.git.rest.resource.GitHubResource.getBranches(GitHubResource.java:121)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:192)
      	at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$1.intercept(DispatchProviderHelper.java:83)
      	at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:53)
      	at com.atlassian.plugins.rest.common.expand.interceptor.ExpandInterceptor.intercept(ExpandInterceptor.java:34)
      	at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:53)
      	at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper.invokeMethodWithInterceptors(DispatchProviderHelper.java:110)
      	at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker._dispatch(DispatchProviderHelper.java:190)
      

      Workaround

      Only workaround is to use a Git type repository instead of a GitHub type repository in Bamboo.

      Attachments

        Activity

          People

            mgardias Marcin Gardias
            jowen@atlassian.com Jeremy Owen
            Votes:
            10 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: