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

Bitbucket Server branch source clone failing after upgrade to 3.0.0

XMLWordPrintable

    • 3.0.1

      After upgrading the Bitbucket Server Integration plugin from 2.1.3 to 3.0.0, our multi-branch pipeline jobs that had "Bitbucket server" set as the branch source in the job config stopped working. We would get the following error. Downgrading back to 2.1.3 got rid of the error but then our Bitbucket hooks stopped triggering builds on git pushes so that's not an option either. Our jobs are blocked one way or the other until this can be fixed. I've noticed that this is also inconsistent in that some jobs with that same branch source type in the job config work just fine. I've even seen instances where some branches of the same job work and some branches fail.

      <removing some git lines that display project names>
      Fetching & pruning origin...
      Listing remote references...
       > git config --get remote.origin.url # timeout=10
       > git --version # timeout=10
       > git --version # 'git version 1.8.3.1'
       > git ls-remote -h -t 
      <removing line that displays project names>
      Fetching upstream changes from origin
       > git config --get remote.origin.url # timeout=10
       > git fetch --tags --progress --prune origin +refs/heads/*:refs/remotes/origin/* # timeout=10
      Checking branches...
        Checking branch ISRMCT-10469
          Met criteria
      Processed 43 branches (query complete)
      Checking tags...
      Processed 1 tags (query complete)
      java.lang.ClassCastException: com.atlassian.bitbucket.jenkins.internal.model.BitbucketPage cannot be cast to com.atlassian.bitbucket.jenkins.internal.model.BitbucketFilePage
      	at com.atlassian.bitbucket.jenkins.internal.client.BitbucketFilePathClientImpl.lambda$getFileContent$1(BitbucketFilePathClientImpl.java:57)
      	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      	at java.util.Iterator.forEachRemaining(Iterator.java:116)
      	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
      	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
      	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
      	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
      	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)
      	at com.atlassian.bitbucket.jenkins.internal.client.BitbucketFilePathClientImpl.getFileContent(BitbucketFilePathClientImpl.java:59)
      	at com.atlassian.bitbucket.jenkins.internal.scm.filesystem.BitbucketSCMFile.content(BitbucketSCMFile.java:83)
      	at jenkins.scm.api.SCMFile.contentAsString(SCMFile.java:335)
      	at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:109)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:309)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      Finished: FAILURE
      

       Any help would be GREATLY appreciated!

       

            mhenschke_atlassian Martin Henschke
            j17359 Michael Steppe
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: