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

Branch detection for Bitbucket Server should not fall back to polling when Bitbucket Server is in maintenance mode

XMLWordPrintable

    • 1
    • 3
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Currently, Automatic Branch Management for Bitbucket Server/Stash repository Plan will fallback to polling when Bitbucket Server is offline or in maintenance mode. Of course this means that git commands will fail.

      2016-09-20 11:50:26,999 INFO [11-BranchDetectionBackgroundThread:pool-19-thread-1] [DefaultErrorHandler] Recording an error: Repository error while detecting branches for plan PROJ-PLAN. command /path/to/git.exe ls-remote ssh://xxx@127.0.0.1:53958/project/repo.git failed with code 128. Working directory was [/path/to/bamboo-home/xml-data/build-dir]., stderr:
      Warning: Permanently added '[127.0.0.1]:53958' (RSA) to the list of known hosts.
      Bitbucket is currently unavailable:
      - The system is unavailable while maintenance is being performed.
      - Bitbucket is unavailable while it is being backed up
      fatal: Could not read from remote repository.
      Please make sure you have the correct access rights
      and the repository exists. : PROJ-PLAN : command /path/to/git.exe ls-remote ssh://xxx@127.0.0.1:53958/project/repo.git failed with code 128. Working directory was [/path/to/bamboo-home/xml-data/build-dir]., stderr:
      Warning: Permanently added '[127.0.0.1]:53958' (RSA) to the list of known hosts.
      Bitbucket is currently unavailable:
      - The system is unavailable while maintenance is being performed.
      - Bitbucket is unavailable while it is being backed up
      fatal: Could not read from remote repository.
      Please make sure you have the correct access rights
      and the repository exists.
      

      Anyway, Bitbucket Server/Stash will send a POST request (trigger) to Bamboo if there is a new/deleted branch.

      It would be better for Bamboo to stop performing git ls-remote command in an interval to detect new/deleted branch from Bitbucket Server/Stash and depend only on the POST request (trigger).

              851f15845f55 Mateusz Szmal
              klfoong Foong (Inactive)
              Votes:
              14 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: