Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-15358

REST API 2.0 to get raw content of an individual file on fails in case of slash in the branch name.

XMLWordPrintable

      I'm using Jenkins as CI. Every build it get the content of Jenkinsfile (similar to .travis.yml file) from the branch to be build.

      We are also using git flow so all our branches are named feature/123 release/1.0 etc etc.
      With the old version 1.0 of REST API works like a sharm
      https://api.bitbucket.org/1.0/repositories/acme/myrepo/src/feature%2F31435/Jenkinsfile

      but the Jenkins plugin for bitbucket has migrate to the newer version 2.0 and it fails with a 404
      https://api.bitbucket.org/2.0/repositories/acme/myrepo/src/feature%2F31435/Jenkinsfile

      I had also try without encoding the slash in the branch name, I got same issue
      https://api.bitbucket.org/2.0/repositories/acme/myrepo/src/feature/31435/Jenkinsfile

              Unassigned Unassigned
              fc59346e-b058-4a42-a8d2-28f1cd182094 Deleted Account (Inactive)
              Votes:
              10 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: