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

Migrating from CVS repository to another in a plan causes an NPE

    XMLWordPrintable

Details

    Description

      If a plan is originally configured with CVS repository and at other time, we intend to change the repository type to say Git, the build will fail with an NPE as shown below:

      2013-02-05 21:59:03,618 WARN [7-BAM::Default Agent::Agent:pool-16-thread-1] [BuildAgentControllerImpl] Error occurred while executing the build for TESTA-CVS-JOB1-10
      java.lang.NullPointerException: Repository 425985 not found in build
      	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
      	at com.atlassian.bamboo.v2.build.task.CheckoutDirectoriesSnapshotHelper.<init>(CheckoutDirectoriesSnapshotHelper.java:75)
      	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:722)
      
      

      This is not the case with other repository types e.g SVN to Git.

      worakround
      Deleting the cache and build directory followed by a restart does not solve the issue. Cloning the plan or creating a brand new one with same config works.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              smaiyaki Sultan Maiyaki (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: