Getting error while while running Task 'Checkout Default Repository'

Issue #42 wontfix
Former user created an issue

I am using TFS with git integration. I have downloaded this plugin and started a build which is resulting in the following error.

Error occurred while running Task 'Checkout Default Repository(1)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout. (java.lang.RuntimeException : com.atlassian.bamboo.repository.RepositoryException: com.atlassian.bamboo.repository.RepositoryException: There is no history for the path $/_git/TestProject/Test. Probably it doesn't exist.)

java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: com.atlassian.bamboo.repository.RepositoryException: There is no history for the path $/_git/TestProject/Test. Probably it doesn't exist. at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:132) at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88) at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:191) at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:176) at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:172) at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:281) at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:278) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:198) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:278) at com.atlassian.bamboo.task.TaskExecutorImpl.executePreparationTasks(TaskExecutorImpl.java:80) at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:74) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:745) Caused by: com.atlassian.bamboo.repository.RepositoryException: com.atlassian.bamboo.repository.RepositoryException: There is no history for the path $/_git/TestProject/Test. Probably it doesn't exist. at com.stellarity.bamboo.repository.TfsRepository.retrieveSourceCode(TfsRepository.java:370) at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.fillWorkingDirFromVcs(VcsCheckoutTask.java:259) at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.access$100(VcsCheckoutTask.java:56) at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$2.call(VcsCheckoutTask.java:177) at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$2.call(VcsCheckoutTask.java:173) at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:108) ... 18 more Caused by: com.atlassian.bamboo.repository.RepositoryException: There is no history for the path $/_git/TestProject/Test. Probably it doesn't exist. at com.stellarity.bamboo.repository.TfsRepository.tryToRetrieveSourceCode(TfsRepository.java:763) at com.stellarity.bamboo.repository.TfsRepository.retrieveSourceCode(TfsRepository.java:348) ... 23 more

I have cloned the repository using Visual Studio ( So I do have right to clone / checkout ). Would highly appreciate any help in this regard. I am using Bamboo version 5.8.1 build 5866

Comments (4)

  1. Sergey Podobry

    Hi!,

    In your case you need to use GIT repository in Bamboo. The repositories should match:

    • TFS repo in TFS => TFS repo in Bamboo
    • GIT repo in TFS => GIT repo in Bamboo

    A sample url for GIT repo in TFS: https://myserver/tfs/defaultcollection/_git/myproject

    More about configuring GIT repo in Bamboo: https://confluence.atlassian.com/display/BAMBOO/Git

    TFS repository plugin is only for TFS repositories (at least for now).

  2. Log in to comment