• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Jenkins: 2.479.2
      OS: Linux - 6.1.115-126.197.amzn2023.x86_64
      Java: 17.0.13 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)
      cloudbees-bitbucket-branch-source:871.v28d74e8b_4226
    • 935.0.0

      Hello,

       

      The following PR introduced a regression: https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/796

      Fetch on pull requests has started to fail with the following error: 

      ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
      ERROR: Maximum checkout retry attempts reached, aborting

      This issue is reproducible on plugin versions from 871.v28d74e8b_4226 to the latest.

      We had to roll back the plugin to 866.vdea_7dcd3008e.

      It seems that in an attempt to fix the checkout flow for Bitbucket Data Center, Bitbucket Cloud was not properly tested, which has become a major issue for us running Bitbucket Data Center v8.19.5.

      As a side note, the Atlassian issue referenced in the comments still hasn't been addressed, so it's unclear why this change was made in the first place.

       

      Your attention to this matter would be greatly appreciated.

       

      Thanks in advance.

          [JENKINS-74980] Pull requests are no longer fetchable

          Kyrylo created issue -
          Kyrylo made changes -
          Description Original: Hello,

           

          The following PR introduced a regression: [https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/796]

          Fetch on pull requests has started to fail with the following error: 
          ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
          ERROR: Maximum checkout retry attempts reached, aborting
          This issue is reproducible on plugin versions from {{871.v28d74e8b_4226}} to the latest.

          We had to roll back the plugin to {{{}866.vdea_7dcd3008e{}}}.

          It seems that in an attempt to fix the checkout flow for Bitbucket Cloud, Bitbucket Data Center was not properly tested, which has become a major issue for us running Bitbucket Data Center v8.19.5.

           

          Your attention to this matter would be greatly appreciated.

           

          Thanks in advance.
          New: Hello,

           

          The following PR introduced a regression: [https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/796]

          Fetch on pull requests has started to fail with the following error: 
          {code:java}
          ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
          ERROR: Maximum checkout retry attempts reached, aborting{code}
          This issue is reproducible on plugin versions from {{871.v28d74e8b_4226}} to the latest.

          We had to roll back the plugin to {{{}866.vdea_7dcd3008e{}}}.

          It seems that in an attempt to fix the checkout flow for Bitbucket Cloud, Bitbucket Data Center was not properly tested, which has become a major issue for us running Bitbucket Data Center v8.19.5.

           

          Your attention to this matter would be greatly appreciated.

           

          Thanks in advance.
          Kyrylo made changes -
          Description Original: Hello,

           

          The following PR introduced a regression: [https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/796]

          Fetch on pull requests has started to fail with the following error: 
          {code:java}
          ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
          ERROR: Maximum checkout retry attempts reached, aborting{code}
          This issue is reproducible on plugin versions from {{871.v28d74e8b_4226}} to the latest.

          We had to roll back the plugin to {{{}866.vdea_7dcd3008e{}}}.

          It seems that in an attempt to fix the checkout flow for Bitbucket Cloud, Bitbucket Data Center was not properly tested, which has become a major issue for us running Bitbucket Data Center v8.19.5.

           

          Your attention to this matter would be greatly appreciated.

           

          Thanks in advance.
          New: Hello,

           

          The following PR introduced a regression: [https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/796]

          Fetch on pull requests has started to fail with the following error: 
          {code:java}
          ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
          ERROR: Maximum checkout retry attempts reached, aborting{code}
          This issue is reproducible on plugin versions from {{871.v28d74e8b_4226}} to the latest.

          We had to roll back the plugin to {{{}866.vdea_7dcd3008e{}}}.

          It seems that in an attempt to fix the checkout flow for Bitbucket Cloud, Bitbucket Data Center was not properly tested, which has become a major issue for us running Bitbucket Data Center v8.19.5.

          As a side note, the [Atlassian issue|https://jira.atlassian.com/browse/BCLOUD-5814] referenced in the [comments|https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/796/files#diff-d769b0b5dee9decacfe1ed7cf599bafdf4f4137f90ddca90c472abed3672c4ebL102] still hasn't been addressed, so it's unclear why this change was made in the first place.

           

          Your attention to this matter would be greatly appreciated.

           

          Thanks in advance.

          Nikolas Falco added a comment -

          > It seems that in an attempt to fix the checkout flow for Bitbucket Cloud, Bitbucket Data Center was not properly tested,

          The PR you link is only for DataCenter. Cloud version does not have the concept of mirror

          Nikolas Falco added a comment - > It seems that in an attempt to fix the checkout flow for Bitbucket Cloud, Bitbucket Data Center was not properly tested, The PR you link is only for DataCenter. Cloud version does not have the concept of mirror

          Kyrylo added a comment -

          nfalco must be something else. Yet, this PR broke the functionality not just for us, but for quite a few others as well: https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/819

          Kyrylo added a comment - nfalco must be something else. Yet, this PR broke the functionality not just for us, but for quite a few others as well: https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/819
          Nikolas Falco made changes -
          Description Original: Hello,

           

          The following PR introduced a regression: [https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/796]

          Fetch on pull requests has started to fail with the following error: 
          {code:java}
          ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
          ERROR: Maximum checkout retry attempts reached, aborting{code}
          This issue is reproducible on plugin versions from {{871.v28d74e8b_4226}} to the latest.

          We had to roll back the plugin to {{{}866.vdea_7dcd3008e{}}}.

          It seems that in an attempt to fix the checkout flow for Bitbucket Cloud, Bitbucket Data Center was not properly tested, which has become a major issue for us running Bitbucket Data Center v8.19.5.

          As a side note, the [Atlassian issue|https://jira.atlassian.com/browse/BCLOUD-5814] referenced in the [comments|https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/796/files#diff-d769b0b5dee9decacfe1ed7cf599bafdf4f4137f90ddca90c472abed3672c4ebL102] still hasn't been addressed, so it's unclear why this change was made in the first place.

           

          Your attention to this matter would be greatly appreciated.

           

          Thanks in advance.
          New: Hello,

           

          The following PR introduced a regression: [https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/796]

          Fetch on pull requests has started to fail with the following error: 
          {code:java}
          ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
          ERROR: Maximum checkout retry attempts reached, aborting{code}
          This issue is reproducible on plugin versions from {{871.v28d74e8b_4226}} to the latest.

          We had to roll back the plugin to {{{}866.vdea_7dcd3008e{}}}.

          It seems that in an attempt to fix the checkout flow for Bitbucket Data Center, Bitbucket Cloud was not properly tested, which has become a major issue for us running Bitbucket Data Center v8.19.5.

          As a side note, the [Atlassian issue|https://jira.atlassian.com/browse/BCLOUD-5814] referenced in the [comments|https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/796/files#diff-d769b0b5dee9decacfe1ed7cf599bafdf4f4137f90ddca90c472abed3672c4ebL102] still hasn't been addressed, so it's unclear why this change was made in the first place.

           

          Your attention to this matter would be greatly appreciated.

           

          Thanks in advance.

          Nikolas Falco added a comment -

          It's not clear how to reproduce the issue.

          For the two lines of log could be something related to an authentication issue.
          Some authentication issues has been resolved with latest plugin version 933.0.2.
          Other authentication issues will be resolved when the git-plugin will be released together with the code in master of bitbucket plugin.

          Please let me know if 933.0.2 already resolve this issues or not. And which authentication you are using.

          Nikolas Falco added a comment - It's not clear how to reproduce the issue. For the two lines of log could be something related to an authentication issue. Some authentication issues has been resolved with latest plugin version 933.0.2. Other authentication issues will be resolved when the git-plugin will be released together with the code in master of bitbucket plugin. Please let me know if 933.0.2 already resolve this issues or not. And which authentication you are using.

          Manjunatha added a comment -

          am also facing same issue with plugin Bitbucket Branch Source 933.1.0, i was using thi version 888.v8e6d479a_1730 and working as expected , but after upgrade am facing the same issue , can any tell me what will be the fix 

          11:05:26  ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
          11:05:26  ERROR: Maximum checkout retry attempts reached, aborting 

          Manjunatha added a comment - am also facing same issue with plugin Bitbucket Branch Source 933.1.0, i was using thi version 888.v8e6d479a_1730 and working as expected , but after upgrade am facing the same issue , can any tell me what will be the fix  11:05:26 ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job. 11:05:26 ERROR: Maximum checkout retry attempts reached, aborting

          Nikolas Falco added a comment -

          Could you share the configuration of the job so that I could reproduce the issue?

          Nikolas Falco added a comment - Could you share the configuration of the job so that I could reproduce the issue?

          Manjunatha added a comment -

          HI nfalco 

          we are using Bitbucket as a source code repo and connecting using Bitbucket server plugin 

          below is one of the jenkins stage is failing 

          stage('Calculate Changelog') {
                                  echo "CHANGE_TARGET: ${env.CHANGE_TARGET}"
                                  // only if this is a PR build
                                  when {
                                      not { environment name: 'CHANGE_TARGET', value: '' }
                                      //expression { return !currentBuild.previousBuild }
                                  }
                                  steps { // calculate the changeset as being from the PR's target branch
                                      script {
                                          checkout scm: scmGit(
                                              branches: scm.branches,
                                              extensions: [
                                                  cloneOption(depth: 100, noTags: true, reference: '', shallow: true),
                                                  changelogToBranch(
                                                      options: [
                                                          compareRemote: 'origin',
                                                          compareTarget: CHANGE_TARGET
                                                      ]
                                                  )
                                              ],
                                              userRemoteConfigs: scm.userRemoteConfigs
                                          ), changelog: true
                                      }
                                  }
                              } 

          you can also check the same issue here https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/819

           

          for now we have downgraded the plugin to 888.v8e6d479a_1730 version 

          Manjunatha added a comment - HI nfalco   we are using Bitbucket as a source code repo and connecting using Bitbucket server plugin  below is one of the jenkins stage is failing  stage( 'Calculate Changelog' ) { echo "CHANGE_TARGET: ${env.CHANGE_TARGET}" // only if this is a PR build when { not { environment name: 'CHANGE_TARGET' , value: '' } //expression { return !currentBuild.previousBuild } } steps { // calculate the changeset as being from the PR's target branch script { checkout scm: scmGit( branches: scm.branches, extensions: [ cloneOption(depth: 100, noTags: true , reference: '', shallow: true ), changelogToBranch( options: [ compareRemote: 'origin' , compareTarget: CHANGE_TARGET ] ) ], userRemoteConfigs: scm.userRemoteConfigs ), changelog: true } } } you can also check the same issue here https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/819   for now we have downgraded the plugin to 888.v8e6d479a_1730 version 

            nfalco Nikolas Falco
            ksmnv Kyrylo
            Votes:
            7 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: