Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,385
Community Members
 
Community Events
185
Community Groups

Unable to checkout code from git repository

We recently switched to using git from subversion. Trying to reconfigure our build server to check out code from the git repo, and we're unable to do so. I can see the requests coming in on the git server (gitolite) :

2012-11-01.18:40:20 build 172.18.100.177 git-upload-pack 'portal-package.git'

2012-11-01.18:40:21 build 172.18.100.177 git-upload-pack 'portal-package.git'

The 'Build Result Summary' even lists the revisions (which match whats in the repo ), but the Bamboo server fails the job w/ the following exception:

com.atlassian.bamboo.repository.RepositoryDefinitionException: Task failed since repository with id 294914 does not exist. It may have been deleted, please update the task and pick a new repository

at com.atlassian.bamboo.repository.RepositoryFunctions$IdSelectorToRepositoryDefinition.apply(RepositoryFunctions.java:87)

at com.atlassian.bamboo.repository.RepositoryFunctions$IdSelectorToRepositoryDefinition.apply(RepositoryFunctions.java:51)

at com.atlassian.bamboo.task.repository.RepositoryTaskHelper.getRepositoryDefinitionByIdSelector(RepositoryTaskHelper.java:129)

at com.atlassian.bamboo.v2.build.task.CheckoutDirectoriesSnapshotHelper.<init>(CheckoutDirectoriesSnapshotHelper.java:103)

at com.atlassian.bamboo.v2.build.task.InitializeBuild.prepareCheckoutDirectories(InitializeBuild.java:102)

at com.atlassian.bamboo.v2.build.task.InitializeBuild.doCall(InitializeBuild.java:84)

at com.atlassian.bamboo.v2.build.task.InitializeBuild.call(InitializeBuild.java:51)

at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:206)

at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103)

at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:111)

at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52)

at java.lang.Thread.run(Thread.java:662)

5 answers

1 accepted

0 votes
Answer accepted

Problem turned out to be a documentation issue, the docs state you can use the pattern user@yourgitserver.com:repo.git This is not correct, and will result in weird errors, the : is only valid for hosts. You need to use a different git URL, like git@yourserver.com/repo.git

I had this issue when I changed my plan repository (github) to a linked repository.

It was solved by going back to the "Checkout Source Code" step and just saving it again. For some reason it linked to my old plan repository.

 

HTH

@francois7your the best, hours wondering why i get this error and this has fixed it!!!

1 vote
JamesA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Nov 06, 2012

Rafal, looks like when you reconfigured your Plan to use Git instead of Subversion the Jobs 'Checkout source task' was not updated and is still refering to the old Subversion repository (thats now deleted).

To fix, for each job in your plan go to the 'Checkout source task' in the Task list and ensure you are checking out the Git repository defined in your Plan.

Jim Bethancourt
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Feb 25, 2016

My case:

1) The repository definition had been deleted

2) I re-created the repository definition and specified the repository in the plan.  Ran the build, but got errors (several times)

3) Checked the job - the plan's repository was listed in the Source Code Checkout task.  I saved the task and the plan ran successfully.

I too had same issue, tried recreating the linked repo, job etc but did not help. Went back to checkout source code task and saved it again, everything started working 

So I'll buy that as a possibility, however I wiped my bamboo install and started clean. There are no Subversion repos defined, only git ones. And I've had no luck with it. If I have one 'default' repository it will get checked out ok, however if I have a 2nd one in the same build plan it will fail to check it out w/ the following error in the log:

com.atlassian.bamboo.repository.RepositoryDefinitionException: Task failed since repository with id 1376259 does not exist. It may have been deleted, please update the task and pick a new repository
	at com.atlassian.bamboo.repository.RepositoryFunctions$IdSelectorToRepositoryDefinition.apply(RepositoryFunctions.java:87)
	at com.atlassian.bamboo.repository.RepositoryFunctions$IdSelectorToRepositoryDefinition.apply(RepositoryFunctions.java:51)
	at com.atlassian.bamboo.task.repository.RepositoryTaskHelper.getRepositoryDefinitionByIdSelector(RepositoryTaskHelper.java:129)
	at com.atlassian.bamboo.v2.build.task.CheckoutDirectoriesSnapshotHelper.<init>(CheckoutDirectoriesSnapshotHelper.java:103)
	at com.atlassian.bamboo.v2.build.task.InitializeBuild.prepareCheckoutDirectories(InitializeBuild.java:102)
	at com.atlassian.bamboo.v2.build.task.InitializeBuild.doCall(InitializeBuild.java:84)
	at com.atlassian.bamboo.v2.build.task.InitializeBuild.call(InitializeBuild.java:51)
	at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:206)
	at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103)
	at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:111)
	at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52)
	at java.lang.Thread.run(Thread.java:662)

However if I create a 'fake' build configuration and set it up w/ the repository thats failing above, and it will check the source out correctly.

This is pretty frustrating right now, I've been trying to get the git integration working for a week.

Thoughts?

Problem turned out to be a documentation issue, the docs state you can use the pattern user@yourgitserver.com:repo.git This is not correct, and will result in weird errors, the : is only valid for hosts. You need to use a different git URL, like git@yourserver.com/repo.git

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events