-
Bug
-
Resolution: Duplicate
-
Low
-
None
-
8.0.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4
-
None
-
6
-
Severity 2 - Major
-
0
-
Issue Summary
When a VCS checkout task fails, Bamboo attempts to recover. If the Force clean build option the retry fails on a Cleaned source directory.
Steps to Reproduce
- Create a checkout task
- While checkout is performed and for some performance reason on remote repository closes the connection
Expected Results
Bamboo retries the checkout task, and tries to recover
Actual Results
When Bamboo retries the task, if the build directory is cleaned before running git fetch, the error fatal: not a git repository is logged
error 19-Nov-2021 14:41:05 Checkout to revision 18cc82f87bb9e6535d12e33ca3ee408769e8c242 has failed. simple 19-Nov-2021 14:41:05 'C:/Program Files/Git/bin/git.exe' remote set-url origin ssh://git@git.ncipher.com:7999/nshield/main.git simple 19-Nov-2021 14:41:05 Warning: failed to checkout source code to directory 'C:\Users\bamboo-agent\bamboo-agent-home\xml-data\build-dir\NC-MAIN02-WIN64REL\main', trying to recover... simple 19-Nov-2021 14:41:06 fatal: not a git repository (or any of the parent directories): .git
Workaround
Try to rerun the failed build
- duplicates
-
BAM-21719 GIT checkout failing on Windows remote agent with error: "fatal not a GIT repository"
- Closed