Details
-
Suggestion
-
Resolution: Done
-
None
-
1
-
3
-
Description
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).
Attachments
Issue Links
- is related to
-
BAM-15792 Prevent Bamboo source code checkout if Bitbucket Server is in maintenance mode
- Closed