Questions tagged [bitbucket-cloud]

Bitbucket Cloud is the online version of Atlassian's Git repository management service, publicly hosted by Atlassian servers at bitbucket.org. It hosts git repositories, along with associated project wikis, issue trackers, CI pipelines, pull requests, and user-managed download files.

Bitbucket Cloud is the online version of Atlassian's Git repository management service, publicly hosted by Atlassian at bitbucket.org. This hosting service provides both free and paid subscription options. It hosts git repositories, along with associated project wikis, issue trackers, CI pipelines, pull requests, and user-managed download files.

Should not be confused with [bitbucket-server] aka Bitbucket data center, which is an enterprise server software package that organizations can purchase to host a private Bitbucket server instance on their own server hardware.

179 questions
2
votes
1 answer

How to set up 1-way sync from Bitbucket Cloud to a local folder

This might sound like a stupid question, and the use-case is rather simple, but I haven't been able to find a decent and simple solution. In short: I have a Bitbucket repo that I want to have synced to a local folder on my local server. So whenever…
Dimster
  • 31
  • 2
2
votes
1 answer

Snyk How to set reviewers on automatic pull requests (Bitbucket Cloud)

I'm using Snyk Bitbucket Cloud integration. Is there a way to add a group of reviewers on automatic pull requests (Bitbucket Cloud). At this moment, the pull requests are created without reviewers. Thanks!!!
satellite satellite
  • 893
  • 2
  • 10
  • 27
2
votes
1 answer

Unable to run npm command in bitbucket pipeline

I'm trying to run the following pipeline in bitbucket image: node:14-stretch pipelines: default: - step: name: Install Depndencies caches: - node script: - apt update &&…
user15281199
2
votes
0 answers

Way to decline pull request programmatically in BitBucket repo when build failed in Azure Devops

I have a build pipeline on azure devops that is configured to run whenever a pull request is made to a BitBucket repository. I'm looking for a configuration so that the pull request in Bitbucket is automatically denied if the build pipeline I…
Well St
  • 21
  • 1
2
votes
0 answers

How to authenticate to bitbucket cloud APIs and then use them post authentication?

Bitbucket cloud APIs have decent documentation, but I could not find a comprehensive exampl showing how to make authenticated calls to those APIs. My requirement is very simple.  As a bitbucket cloud admin for a given workspace, I would like to get…
qre0ct
  • 5,680
  • 10
  • 50
  • 86
2
votes
2 answers

Bitbucket API for updating the build status for a pull request

I see the docs for updating the build status for a commit: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build For a pull request, isn't there a unique…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
2
votes
1 answer

Sending ssh key to Bitbucket using curl command failing

I am trying as follows: SSHKEY=`cat ~/.ssh/id_rsa.pub` curl -u username:password -X POST -H "Content-Type: application/json" -d '{"key": "$SSHKEY", "label": "someLabel"}' https://api.bitbucket.org/2.0/users/username/ssh-keys But it is…
Md. Najmul Hasan
  • 605
  • 1
  • 6
  • 19
2
votes
1 answer

deploy functions based on the changed files in a commit by Jenkinsfile

I have many functions in my Bitbucket Repository and one single Jenkinsfile to launch one job in order to deploy these python functions. I need to deploy the functions based on the changed files in the repository. The structure of my repo is like…
Souad
  • 4,856
  • 15
  • 80
  • 140
2
votes
2 answers

How to create a pull request from existing repo to a new?

We got 4 separate repositories. Dev, QA, UAT and Prod in Bitbucket Cloud. Now we need to add another repo between UAT and Prod. Which will be pulling changes from UAT. Therefore, I forked UAT and created new repo called Preprod. But when i try to…
ChamingaD
  • 2,908
  • 8
  • 35
  • 58
2
votes
1 answer

How to trigger a ticket status change in Jira on a Bitbucket Pull request approve

we have a workflow process that requires a jira ticket to automatically change status when code associated with it has a pull request approved. For merging, creating, declining and reopening, this would just be a simple matter of adding a trigger to…
user10170961
2
votes
0 answers

Merge Master Branch (HotFixes) into Feature Branch via REST API Bitbucket

we need to merge the master code (hotfixes commits) into feature branch via bitbucket REST API. There is an option of sync on Bitbucket cloud but via can't find any rest API for it. Whereas the same thing it possible in GitHub check here.
Atit
  • 125
  • 2
  • 10
2
votes
2 answers

How to stop repo:push if webhooks condition fails in BitBucket

I'm trying to stop the repo push in Bitbucket if the commit statement doesn't have the defined Jira issue id in the remark. I have successfully invoked the URL for checking the commit remark via webhooks but unable to figure out the way to stop the…
Ankita Goyal
  • 391
  • 1
  • 2
  • 16
2
votes
0 answers

Jenkins - ERROR: Reference path does not exist

I got an error message when I use sub-modules in Jenkins that are referencing bitbucket as source control system. Windows Server 2012 R2 Jenkins version: Jenkins ver. 2.73.1 Bitbucket: Private The ssh key authentication is fine as I can download the…
Roland
  • 21
  • 1
  • 3
1
vote
0 answers

Bitbucket Cloud API: is there a way to edit a file in a repo?

The Bitbucket Server API documentation outlines an endpoint to submit a PUT request and edit a file within a specified repository. However, the Bitbucket Cloud API does not seem to have this same functionality included. Is there a direct or indirect…
1
vote
1 answer

Bitbucket Cloud repository using Repository Access Token for Databricks Service Principal git credentials

I am trying to get a Databricks Workflow running as a Service Principal. I am using a Bitbucket Cloud Repository Access Token so that the git credentials for the Databricks Service Principal to use are not tied to an individual user. Based on the…
1 2
3
11 12