Details
-
Bug
-
Resolution: Fixed
-
Low
-
4.4
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
- is caused by
-
BDEV-2052 Loading...