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

Exported CVS repo can't be used after import

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 6.2.0
    • 6.0.0
    • Bamboo Specs
    • None

    Description

      Summary

      Plan with CVS repository can't be imported by Bamboo Specs

      Steps to reproduce

      Create plan with plan repository of CVS type. Export to Bamboo Specs

      ...
      AnyVcsRepository repository = new AnyVcsRepository(new AtlassianModule("com.atlassian.bamboo.plugin.system.repository:cvs"))
                      .name(repositoryName)
                      .repositoryViewer(new GenericRepositoryViewer()
                              .viewerUrl("http://myrepo.com")
                              .repositoryPath("csv"))
                      .serverConfiguration(new MapBuilder()
                              .put("repository.cvs", new MapBuilder()
                                      .put("cvsRoot", "/usr/local/CVS")
                                      .put("password", "")
                                      .put("quietPeriod", 2)
                                      .put("module", "test")
                                      .put("authType", "password")
                                      .put("selectedVersionType", "head")
                                      .build())
                              .build())
                      .changeDetectionConfiguration(new VcsChangeDetection());
      ...
      

      Import to Bamboo from Maven command
      Open configuration plan in browser

      Expected: it's possible to edit plan details
      Actual: stack trace

      io.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
      	at io.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:156)
      	at io.atlassian.util.concurrent.LazyReference.get(LazyReference.java:116)
      	at com.atlassian.bamboo.plan.cache.AbstractImmutableChain.getPlanRepositoryDefinitions(AbstractImmutableChain.java:231)
      	at com.atlassian.bamboo.plan.PlanHelper.getPlanRepositoryDefinitions(PlanHelper.java:49)
      	at com.atlassian.bamboo.plan.PlanHelper.getDefaultPlanRepositoryDefinition(PlanHelper.java:69)
      	at com.atlassian.bamboo.plan.branch.ChainBranchUtils.getANameFromBranch(ChainBranchUtils.java:64)
      	at com.atlassian.bamboo.plan.branch.ChainBranchUtils.getSubstitutedVcsBranchDisplayNameWithoutContextChange(ChainBranchUtils.java:51)
      	at com.atlassian.bamboo.plan.branch.ChainBranchUtils.getChainBranchNameWithoutContextChange(ChainBranchUtils.java:110)
      	at com.atlassian.bamboo.plan.branch.ChainBranchUtils.lambda$getChainBranchNameInTemporaryContext$3(ChainBranchUtils.java:101)
      	at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:196)
      	at com.atlassian.bamboo.plan.branch.ChainBranchUtils.getChainBranchNameInTemporaryContext(ChainBranchUtils.java:100)
      	at com.atlassian.bamboo.plan.branch.ChainBranchUtils.getChainBranchName(ChainBranchUtils.java:95)
      	at com.atlassian.bamboo.ww2.beans.DecoratedNavObjectFactoryImpl.getSubstitutedBranchName(DecoratedNavObjectFactoryImpl.java:132)
      

      Attachments

        Issue Links

          Activity

            People

              achystoprudov Alexey Chystoprudov
              achystoprudov Alexey Chystoprudov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: