Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-11412

Bamboo should warn user when cloning a job between plans where the job is using the plans default repository

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    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:

      1. The user is prompted to select a repo from the destination plan as a replacement for the default repo from the original
      2. The repository is reset automatically when the job is created in the destination plan

      Attachments

        Activity

          People

            Unassigned Unassigned
            b0d88db9bee7 David Corley
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: