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 API 2.0 page parameters using non-default pagelen

I have run into a cumbersome limitation of the bitbucket API 2.0 - I am hoping there is a way to make it more usable. When one wants to retrieve a list of repositories from the bitbucket API 2.0, this url can be…
LHM
  • 721
  • 12
  • 31
0
votes
1 answer

Bitbucket api set repository access roles

I've created a repository in BitBucket using the api: curl -v -X POST -d '{"scm": "git", "is_private": "true", "fork_policy": "no_forks", "project": {"key": "MARS"}}' -H "Content-Type: application/json" …
Eyal H
  • 991
  • 5
  • 22
0
votes
1 answer

Is it possible to restrict the permissions to only allow REST API calls in Bitbucket Server?

I was wondering if it is possible to restrict the credentials of a user to only allow to perform REST API calls (ideally selected ones). I would like to restrict the user created for Jenkins purposes on to be able to: trigger the build (using POST…
Crazyjavahacking
  • 9,343
  • 2
  • 31
  • 40
0
votes
1 answer

Bitbucket API returns 'Bad request' when using python requests

I want to make a request to Bitbucket API to create repository. The following curl works: curl -v -X POST -d '{"scm": "git", "is_private": "true", "fork_policy": "no_forks", "project": {"key": "MARS"}}' -H "Content-Type: application/json" …
Eyal H
  • 991
  • 5
  • 22
0
votes
1 answer

Cannot find Ouath2 secret and key to connect my pipeline to bitbucket

I am trying to use aws code pipeline but with bitbucket rather than git.So I found the follwoing document: https://aws.amazon.com/blogs/devops/integrating-git-with-aws-codepipeline/ After going through it when I clicked on a template they provided,…
0
votes
2 answers

Bitbucket CLI/API TO enable hooks for Jira Issue Commit Checker and Webhook to Jenkins

I am automating the process to create Bitbucket repository using the Rest API( I am good with creating the empty repository) I need to know, is there any provision to enable the HOOKS like JIRA Issue Commit checker and Webhook to Jenkins using the…
0
votes
2 answers

How to access source code in bitbucket using REST API?

How to access a java file which is sitting in repo in a specific package. Bit bucket has meta data info like pullrequest api,last commit REST APIs. can you suggest/help me with sample rest call and also how to pass username and password? given that…
user12
  • 239
  • 2
  • 6
  • 18
0
votes
0 answers

Connect to Bitbucket database from Bitbucket plugin

I have an instance of Bitbucket which has an Oracle database. I am creating a plugin where I need to use the database tables directly (not the AO tables). Is there any way to achive this? Do I need to use a normal JPA framework inside the plugin to…
Sri
  • 573
  • 2
  • 6
  • 20
0
votes
1 answer

Bitbucket server API: is it possible to checkout/pull/merge via API?

I'm writing some automatic scripts using Bitbucket Server API. I have a lot of actions here, with pull request creation, etc. For some reason I need to synchronize some branch with remote and merge with other branches(git merge). Is it possible to…
0
votes
1 answer

Commit Not Found on Bitbucket on PreReceiveRepositoryHook

I am trying to validate a file on PreReceiveRepositoryHook and been following examples from atlassion site(https://bitbucket.org/roadsidepicnic/atlassian-bitbucket-check-commits-hook) and githup project…
a4anand
  • 11
  • 4
0
votes
1 answer

How to get the current logged in user in Bitbucket through JavaScript?

How can I get the current logged in user in Bitbucket via JavaScript? Or is there any alternate way of finding logged in user in Bitbucket like we find it in Jira by (AJS.params.loggedInUser)?
0
votes
1 answer

Bitbucket API - read shared repositories

How can I read all repositories for the current logged in user (under current user I understand the user authenticated with the acess_token - we are in API side). The "/repositories" endpoint return us all the public repositories. The…
user3226904
  • 51
  • 1
  • 4
0
votes
1 answer

OAUTH2.0 Bearer token not working

I am using retrofit 2.0 to build a Bitbucket REST client on Android. As far as I'm concerned, OAUTH2.0 provides "Implicit grant" which gives the client the access Bearer token immediately when the user logins to their account when are prompted…
Tran Triet
  • 1,257
  • 2
  • 16
  • 34
0
votes
1 answer

Issues using bash script to backup bitbucket

Currently we have a bash script in place that will go through bitbucket store clones of each repository on a hard drive and backup that hard drive. Recently though the number of repositories has exceeded the bitbucket api pagelen count of 100. …
0
votes
1 answer

Accessing the bit bucket branches and their contents programmatically

I need to list out the contents of a bitbucket branch. I am able to see the branch when I run the below code but am unable to figure out how to enter the branch. Giving the branch id is also not helping. The code so far: package…
Pallavi Prasad
  • 577
  • 2
  • 9
  • 28