Bamboo build plan fails to start with RepositoryDefinitionException: Task failed since repository with id does not exist
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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.
*Except Fisheye and Crucible
Summary
Problem
Bamboo plan fails to start with RepositoryDefinitionException: Task failed since repository with id does not exist
Diagnosis
A stack trace similar to the following is found in the UI / error log after starting the plan:
1
2
com.atlassian.bamboo.repository.RepositoryDefinitionException: Task failed since repository with id 55836790 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:96)
Cause
An unknown exception has caused the task definition to come out of sync with the repository definition.
Solution
Workaround 1
Remove and re-add the Source code checkout task for the plan in question.
Workaround 2
Re-save the repository settings used by the Source code checkout task,by editing the title for example.
Was this helpful?