Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-73773

ALM Octane branch collector failure for Duplicate keys

XMLWordPrintable

      ALM Octane branch collector failure for Duplicate keys.

      In our octane instance somehow we have 2 branches in octane with the same names (different id). Most likely the developer might have created a branch , deleted the branch and then recreated a branch with the same name. The branch collection should not fail but continue to process remaining branches and just skip the problematic branch.

       

      Stack Trace: <Branch name> is the actual git branch name and has been removed for privacy

      01:24:41  BranchPublisher : Found 29 branches in ALM Octane related to defined filter.
      01:24:42  BranchPublisher : New branches created: 1, failed to create 1 branches
      01:24:42  BranchPublisher : ALM Octane branch collector failed : Duplicate key <Branch Name> (attempted merging values scm_repository, #17005 - <Branch Name> and scm_repository, #19020 - <Branch Name>)
      01:24:42  java.lang.IllegalStateException: Duplicate key <Branch Name> (attempted merging values scm_repository, #17005 - <Branch Name> and scm_repository, #19020 - <Branch Name>)
      01:24:42      at java.base/java.util.stream.Collectors.duplicateKeyException(Collectors.java:135)
      01:24:42      at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:182)
      01:24:42      at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
      01:24:42      at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
      01:24:42      at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
      01:24:42      at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
      01:24:42      at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
      01:24:42      at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      01:24:42      at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
      01:24:42      at PluginClassLoader for hp-application-automation-tools-plugin//com.hp.octane.integrations.services.pullrequestsandbranches.PullRequestAndBranchServiceImpl.syncBranchesToOctane(PullRequestAndBranchServiceImpl.java:294)
      01:24:42      at PluginClassLoader for hp-application-automation-tools-plugin//com.microfocus.application.automation.tools.octane.branches.BranchesPublisher.performInternal(BranchesPublisher.java:154)
      01:24:42      at PluginClassLoader for hp-application-automation-tools-plugin//com.microfocus.application.automation.tools.octane.branches.BranchesPublisher.perform(BranchesPublisher.java:103)
      01:24:42      at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
      01:24:42      at PluginClassLoader for workflow-basic-steps//org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:101)
      01:24:42      at PluginClassLoader for workflow-basic-steps//org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:71)
      01:24:42      at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      01:24:42      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
      01:24:42      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      01:24:42      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      01:24:42      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      01:24:42      at java.base/java.lang.Thread.run(Thread.java:833)

            buzas Laura Buzas
            alok_1979 Alok Kumar Singh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: