Questions tagged [bitbucket-api]

The Bitbucket REST API allows third-party application developers the means for writing applications for the Bitbucket service.

The Bitbucket REST API allows third-party application developers the means for writing applications that integrate with the Bitbucket service. The API includes ways to manage the repository changesets, issues on the issue tracker, permissions etc.

See also

430 questions
3
votes
1 answer

Bitbucket API authentication using curl (Postman)

I've tried to figure out how to authenticate with Bitbucket API 2, but with no luck so far. It should be possible to authenticate and get an access token using the following curl command: $ curl -i -X POST -u "client_id:secret"…
KimHansen
  • 375
  • 2
  • 12
3
votes
3 answers

ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: exit status 1

I am trying to deploy my first app in google cloud bucket by using bitbucket pipeline, but I am getting the following error in google cloud console. ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: exit status 1 ERROR The command '/bin/sh…
3
votes
0 answers

How to fix: bitbucket-pullrequest-builder-plugin SSLPeerUnverifiedException error

I am setting up Bitbucket pull request builder plugin on my jenkins instance with Bitbucket URL = https://bitbucket.org. But, https request to bitbucket throws the SSLPeerUnverifiedException error. How can I solve this? Is there an option to Ignore…
ruhan
  • 41
  • 2
3
votes
1 answer

BitBucket: How to update a file via the API

I'm struggling to understand how to implement the following API to update files in a repo: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/src#post GitLab and GitHub have a simple api -…
Dominic
  • 62,658
  • 20
  • 139
  • 163
3
votes
1 answer

BitBucket API: How to get a list of branches from a repository UUID

BitBucket API so far has been an interesting experience, let's say. We have sometimes very brief generated docs across various URLs with bits of functionality peppered between bitbucket.org/rest/api/1.0, api.bitbucket.org/2.0 etc and a way to get a…
Dominic
  • 62,658
  • 20
  • 139
  • 163
3
votes
1 answer

Best way of pulling the data from bitbucket repository using python code

I have to develop a functionality wherein I have to pull the files from bitbucket repository using python code on linux server. Files are located in bitbucket repository itself Can you suggest me how to do that and best way of doing that. I tried…
anonymous
  • 31
  • 1
  • 2
3
votes
2 answers

How to sync repo in bitbucket to Visual studio team service?

I am very new to VSTS platform. In one of my project, I am trying to integrate the bitbucket source control to VSTS. By this way I should be able to see the updates made on bitbucket onto the VSTS account. I have tried creating build on VSTS, but…
3
votes
1 answer

Programmatically access Atlassian BitBucket from Java application

From my Java application, I need to programmatically access Atlassian BitBucket account in order to be able to manage repositories/branches/commits/files. I have found the following Java API…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
3
votes
1 answer

How to create a pull request in a Bitbucket using api 1.0

I am trying to create an automation pipeline and in that, I want to create a pull request in bitbucket from my jenkins job. I found some document where I can create a pull request using rest api. But that is for api 2.0. I have old bitbucket and I…
Mithil Amin
  • 207
  • 1
  • 6
  • 14
3
votes
1 answer

Jmeter and Bitbucket server load testing

I am new to Jmeter. I have a locally hosted Bitbucket server. Sometimes when Bamboo plan triggers concurrent git clone operations it's found that Bitbucket servers gets slow/unresponsive and I have to restart the service. I want to simulate this…
Pushpraj
  • 69
  • 1
  • 6
3
votes
1 answer

How to get the PullRequest Modified file count and line count in bitbucket Rest api

From bitbucket Rest api how can I get the PullRequst modified line count and file count. I used this "https://bitbucket.org/!api/2.0/repositories/{userName}/{repoName}/pullrequests/2/diff". But this return as file.can I get the filecount and line…
3
votes
1 answer

Create a BitBucket Team repository using the api

I need to create a Team repository usign Bitbucket's API. To create a user repository I use to do so: $ curl -k -X POST -u username:passwd "https://api.bitbucket.org/1.0/repositories" -d "name=myrep" How would I do the same but for a team?
kaligne
  • 3,098
  • 9
  • 34
  • 60
3
votes
1 answer

Bitbucket pull request updated webhook

Right now using the webhook pull request updated event I get notified for any pull request update (eg: description updated, title changed, etc.) Is there a way to be notified only when a push was made to a pull request?
daniels
  • 18,416
  • 31
  • 103
  • 173
3
votes
2 answers

Bitbucket search repo API

I've been trying to find an API to query repositories on BitBucket based on language they're written in. Few years ago I've been using https://bitbucket.org/repo/all/relevance?language=X But right now the link is dead. There is a new API…
Krzysztof Wende
  • 3,208
  • 25
  • 38
3
votes
4 answers

Bitbucket API authentication with Python's HTTPBasicAuthHandler

I'm trying to get the list of issues on a private repository using bitbucket's API. I have confirmed that HTTP Basic authentication works with hurl, but I am unable to authenticate in Python. Adapting the code from this tutorial, I have written the…
jbochi
  • 28,816
  • 16
  • 73
  • 90