Some local refs could not be updated error while running a plan
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
要約
User may get some local refs could not be updated error while attempting to run a plan branch to a given repository.
環境
Not applicable.
診断
This error can be found in the build logs:
(unable to update local ref) error: some local refs could not be updated; try running 'git remote prune ssh://aabbccdd-1234-4567-8910-aabbccddeeff@127.0.0.1:123456/project/repository.git' to remove any old, conflicting branches)
原因
This issue can be caused due to old and conflicting git caches that are stored either on Bamboo server or in the remote agents.
ソリューション
To fix this issue you will have to delete the conflicting git cache from the repository by following the steps below:
- Go to Bamboo administration >> BUILD RESOURCES >> Repository settings and find the plan which is failing with the error.
- Click on Delete on the Operations