Bamboo build plan fails to start with RepositoryDefinitionException: Task failed since repository with id does not exist

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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

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:

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. 

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.

Last modified on May 31, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.