-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
Jenkins 2.98
Bitbucket Branch Source Plugin v 2.2.8
-
-
v2.4.3
Currently when trying to do a Pull Request build using the Bitbucket Branch Source Plugin, it falls back to do a heavyweight checkout for both building the PR head revision and also the PR merged revision.
ERROR: Could not do lightweight checkout, falling back to heavyweight java.io.FileNotFoundException: URL: /rest/api/1.0/projects/someproject/repos/somerepo/browse/jenkins.pipeline?at=PR-1184&start=0&limit=500 at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getRequest(BitbucketServerAPIClient.java:523) at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getFileContent(BitbucketServerAPIClient.java:730) at com.cloudbees.jenkins.plugins.bitbucket.filesystem.BitbucketSCMFile.content(BitbucketSCMFile.java:81) at jenkins.scm.api.SCMFile.contentAsString(SCMFile.java:338) at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:104) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:262) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)
The URL parameter for the branch is "at=PR-1184", but should be:
- For building the PR head revision: "refs/pull-requests/1184/from"
- For building the PR merged revision: "refs/pull-requests/1184/merge"
In both cases "refs/" can be omitted.
- relates to
-
JENKINS-45997 BitBucket PRs failing to checkout on initial run after PR updated with new commits
- Resolved
-
JENKINS-47978 Lightweight checkout not working for branches that contain forward slash '/'
- Resolved
-
JENKINS-42518 Provide lightweight checkout capability for bitbucket to avoid repository clone for multi-branch pipeline jobs
- Resolved