Details
-
Suggestion
-
Resolution: Fixed
-
None
Description
We've cloned a few jobs across plans where the job uses the default plan repository. When we attempt to use the job in the new plan, we get something along the lines of:
com.atlassian.bamboo.repository.RepositoryDefinitionException: Task failed since repository with id 123456789 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:84) at com.atlassian.bamboo.repository.RepositoryFunctions$IdSelectorToRepositoryDefinition.apply(RepositoryFunctions.java:48) at com.atlassian.bamboo.task.repository.RepositoryTaskHelper.getRepositoryDefinitionByIdSelector(RepositoryTaskHelper.java:129) at com.atlassian.bamboo.v2.build.task.InitializeBuild$CheckoutDirectoriesSnapshotHelper.<init>(InitializeBuild.java:221) at com.atlassian.bamboo.v2.build.task.InitializeBuild.prepareCheckoutDirectories(InitializeBuild.java:128) at com.atlassian.bamboo.v2.build.task.InitializeBuild.doCall(InitializeBuild.java:110) at com.atlassian.bamboo.v2.build.task.InitializeBuild.call(InitializeBuild.java:77) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:202) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:109) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) at java.lang.Thread.run(Thread.java:662)
When cloning jobs across plans where the jobs use the plan default repo there should be one of the following done:
- The user is prompted to select a repo from the destination plan as a replacement for the default repo from the original
- The repository is reset automatically when the job is created in the destination plan