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
0
votes
1 answer

Bitbucket rest api to get diff of commits present between any two branches

I am trying to get list of diff of commits present between two branches for reporting purpose. Suppose i need to find out commits which are present in release branch but not to prod branch . So for this i need a rest api from bitbucket which will…
0
votes
2 answers

How to extract All files from Bitbucket repository using Bitbucket API

I have tried below URL https://bitbucket.org/ownername/projectname/src/5ec35d2481b3523123c43d5b2ddc105dd97b59fb/ I am getting Only 10 files from repo, but I have loaded 20 files , also I saw the response it returns default pagelen 10, how to…
jack
  • 1
  • 4
0
votes
1 answer

How to pass data with CURL on one line

Hello I want to use the API approach to show the jenkins build status with curl as stated here: https://developer.atlassian.com/server/bitbucket/how-tos/updating-build-status-for-commits/ Assembled that: curl -u username:'password' -H "Content-Type:…
WhoAmI
  • 1,013
  • 2
  • 9
  • 19
0
votes
1 answer

Bitbucket API - Get list of comments on pull request inside merge hook

I am adding merge hook through bitbucket server plugin API to prevent merging of pull request if there is some specific comment is missing on PR I am successfully able to apply this hook on PR, but DON'T see way to get list of comments on PR…
Rakesh Bhalani
  • 668
  • 4
  • 10
0
votes
1 answer

Upload JSON file to InfluxDB

I am trying to collect Bitbucket API data as a json file and push the data to InfluxDB. I am doing this via Jenkins scripted pipeline. I am not sure how to convert my json data to points as the data will be dynamic. The script executes without any…
Articher
  • 29
  • 1
  • 9
0
votes
1 answer

Can acces Bitbucket private repository with curl but not with Python

I want to use the Bitbucket API to get information of a private repository. It works fine with curl: curl -u username:apppassword https://api.bitbucket.org/2.0/repositories/company/repo But not with Python (Unfortunately I have to use Python 3.4): …
Thomas Klier
  • 449
  • 4
  • 16
0
votes
2 answers

NodeJS Controller function returns before data from API call and array.filter completes

I'm working on a Slackbot that compares a repo branch file with the same file in Master, which requires making two API calls to bitbucket's API. The first grabs all the most recent branches in our workspace, which includes a URL that I can then use…
0
votes
0 answers

Is there a way to get branch merge status information into JSON?

So a Repository having heavy traffic always tends to be having more and more OPEN, MERGED and DECLINED branches. We came up with this idea of creating a Jenkins Job which could be run once in a while to DELETE all the MERGED and unused branches by…
0
votes
1 answer

Jenkins web-hook trigger for commits against open PR

I already integrated my Bitbucket server with Jenkins server and it works fine. I want to configure this integration (Jenkins servers <-----------> Bitbucket server in a way that a developer commit for a open pull request, webhook should trigger the…
0
votes
1 answer

Python and Stashy for Bitbucket timeout issue

I am attempting to make a GUI program that will push changes to a Bit Bucket Repository. I have the following code for a TKinter GUI application Button. i keep getting the following errors. Right now I just want to display the repos in the text box…
Alehandro
  • 39
  • 8
0
votes
1 answer

Unable to create a new branch in a repo using Bitbucket API 2.0

I want to create a new branch named test-branch-name from the master branch in a given repository. So as per the documentation provided here, I tried creating a new branch in the repository using Postman. curl --location --request POST…
Akshay Maldhure
  • 787
  • 2
  • 19
  • 38
0
votes
2 answers

Download a file from bitbucket feature branch using BitBucketAPI

HI I am trying to download a file based on the bit bucket branch selection . I am able to download the file from ci or master branch , but unable to download from feature branch. Can you please help me . If i download from CI branch it works…
Hanuman
  • 43
  • 5
0
votes
1 answer

how to get bitbucket tagged commits sorted by date-wise using Bitbucket API?

I am working on a project that needs to fetch all tagged commits sorted in reverse order by datetime. I first tried using this API /2.0/repositories/{workspace}/{slug}/refs/tags but the results are in random order which i believe is sorted in asc by…
0
votes
0 answers

How to get the user who are pushing the code with Atlassian api

The feature is:only user in the approved-list can push code to a special branch. I use Atlassian Bitbucket as Gitserver. In the hook pre-update. I need to figure out the user who is pushing the code. for example: git add 1 git commit git cherry-pick…
clara
  • 182
  • 1
  • 2
  • 13
0
votes
1 answer

How to Upload a folder to bitbucket repo using API and CURL

I'm able to upload a file to bitbucket repository but there is any way to upload a folder using CURL and API.