Allow the ability to bulk update Bitbucket Server SSH keys

XMLWordPrintable

      Problem

      When SSH keys are removed or expired in Bitbucket Server. Bamboo users will see the following error for each branch and are instructed to go to the configuration and select Save for each branch. This can be very tedious and intrusive for organizations with multiple plan branches in Bamboo.

      015-10-26 10:01:58,827 INFO [8-BAM::PlanExec:pool-15-thread-2] [RetryingTaskExecutor] Task 'Collecting changes for PROJ-PLAN451' was unsuccessful. Run 1 / 2. Exception thrown when running task 'Collecting changes for PROJ-PLAN451', with message: com.atlassian.bamboo.repository.RepositoryException: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote ssh://8469b5ec-b517-42ee-8b6c-eec35eaea317@127.0.0.1:40114/git/repo.git failed with code 128. Working directory was [.]., stderr:
      Authenticating remote session failed
      stdout:
      [Warning: Permanently added '[127.0.0.1]:40114' (RSA) to the list of known hosts., BAMBOO-SSH-PROXY: [While connecting to [git@stash.base_url.com/192.168.13.22:7999]: Authenticating remote session failed], fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.]
      2015-10-26 10:01:58,827 INFO [8-BAM::PlanExec:pool-15-thread-2] [RetryingTaskExecutor] Waiting 5248ms before retrying...
      

      Improvement

      Add alternative to updating SSH keys via bulk update or API.

              Assignee:
              Unassigned
              Reporter:
              James Giles IV (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: