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

Checkout retry fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Low Low
    • None
    • 8.0.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4
    • VCS task
    • None

      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

      1. Create a checkout task
      2. 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

              Unassigned Unassigned
              voseghale VICTOR-OSEGHALE (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: