804 questions
1
vote
0
answers
113
views
Changing more than one line in a Bitbucket pull request
Bitbucket recently added a new option to their pull request management to add suggested changes in a pull request. However a comment is set on a specific line, which is fine unless your change affects ...
1
vote
0
answers
52
views
Bitbucket DC 8.18 – AMPS 8.6.0 won’t compile .soy → .soy.js; file missing in the final JAR
I’m writing a pre-receive hook for Bitbucket Data Center 8.18.
The add-on builds successfully, but the Soy template never gets compiled to JS, so the settings form cannot be rendered in Bitbucket (“...
0
votes
0
answers
98
views
Pull JaCoCo Code Coverage Report from the SonarQube to Be Able to See Code Coverage During PR Review
Environment
Bitbucket Data Center v8.17.0
Bamboo 8.2.9
SonarQube v2025.1.1
Current Setup
Hi Atlassian Community!
I currently have the following workflow implemented:
Create Pull Requests in ...
1
vote
0
answers
47
views
Map bitbucker repo data from atlassian connect app to my FastAPI User/Org
I am developing a code security scanner platform on FastAPI in which I need to integrate bitbucket with a Atlassian Connect App like
https://marketplace.atlassian.com/apps/1232592/ox-security-...
0
votes
2
answers
291
views
How to trigger one job in Jenkins by multiple repositories in Bitbucket?
I've got a problem with Jenkins. I'm using Bitbucket Server Integration plugin and I want to configure one job to start reading Jenkinsfile from repository when I push some changes to one of my repos. ...
2
votes
0
answers
355
views
How to search for a exact phrase match in files with certain extension - Your query couldn't be parsed. We've searched with a modified query
In bitbucket this search query
project:Foo repo:bar "my current status" (ext:xml OR ext:html) archived:true
returns some matches but also returns
Your query couldn't be parsed. We've ...
0
votes
1
answer
77
views
git merge is blocked with Bitbucket DataCenter
I am having issue to merge a PR with Bitbucket Data Center.
Here is the sequence :
Another user created a Branch-A from master early.
"commit1" is committed to branch-A 6 days ago.
I ...
0
votes
0
answers
325
views
Programmatically Generate Bitbucket HTTP Access Token Using Existing Access Token
As the title states, is it possible to programmatically generate an HTTP access token on Bitbucket server from an existing access token, e.g. via their REST API?
From reading their documentation, it ...
1
vote
1
answer
324
views
Bitbucket pipeline to build LaTex files and send via Mail
Hi try to find a solution to build a LaTeX document and send it afterwards via Mail:
image: dme26/latex-builder:latest
pipelines:
default:
- step:
name: Build the .pdf
script:
...
0
votes
1
answer
141
views
Git Custom Merge Driver isn't executed anymore by Bitbucket Server 8 / Git 2.39
We updated our Bitbucket Server from 7.21.X to 8.9.10 and the underlying Git from 2.23 to 2.39.
Since then the Custom Merge Driver isn't started anymore.
I couldn't find anything in the Release Notes ...
0
votes
0
answers
60
views
repository not found in github access denied or does not exisst
remote: The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated.
tried ssh gen key and ...
-1
votes
1
answer
400
views
Bitbucket pipeline condition to cd into folder and run commands
Is there a way with Bitbucket Pipeline condition to cd into specific folder and execute commands? My idea is to have folder with Terraform project and environment (develop, staging and prod). Here is ...
0
votes
0
answers
354
views
Bitbucket Control Freak error message that a branch cannot be created as commits on the new branch must arrive via pull-request
My Bitbucket users normally use the Bitbucket UI to create a new branch. The Bitbucket plugin, Control Freak, has been enabled and the global branch permissions section has been setup to "Always ...
0
votes
0
answers
428
views
How can I search for specific text in a repository using the bitbucket API?
I am trying to look for specific text in a repo but how can I achieve this with bitbucket server using the bitbucket version 1 API?
I am a bit limited with the advanced search feature on the bitbucket ...
0
votes
1
answer
939
views
How to create a new Bitbucket pull request via API?
I'm trying to create a pull request on Bitbucket Server via Rest API, following this documentation. No matter what I try, I get a (400) Bad Request. error. I found this answer and used the body text ...
1
vote
1
answer
338
views
How to react to Bitbucket PR comments via Rest API
I have a Bitbucket Server and I'm trying to figure out how to react to PR comments via the REST API. I'm referencing this documentation. The example shows:
curl --request PUT \
--url 'http://{...
0
votes
1
answer
769
views
How to get jenkins to build regardless of no changes in the repository?
I have a bitbucket webhook set to trigger jenkins job on a different bitbucket repository. The problem here is that, because there are no changes done for the repository which the job is supposed to ...
0
votes
0
answers
252
views
Trigger a TeamCity build after a pull request completes
Our current setup is to have a build triggered by pull request which will publish the output to a network location for testing. Once testing is completed then the pull request is accepted and merged ...
1
vote
1
answer
872
views
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 ...
1
vote
1
answer
1k
views
Getting Commit ID on a specific file using file name/path - Bitbucket Server API
I am trying to write some scripts which will create files(json) in Bitbucket Server and occasionally update these files. Later on I would like to be able to query the changes made to the files and ...
-1
votes
1
answer
713
views
Export the list of commits which are there in one branch but not there in another branch with commit owner bitbucket
we needs to Export the list of commits which are there in one branch(branch1) but not there in another branch(branch2) with committer id in bitbucket.
So Please let me know if any such kind of option ...
0
votes
0
answers
82
views
Cannot Fetch or use any git commands (push , pull , ...) on Atlassian BitBucket Repository
When i try to fetch or do any command on my Atlassian gitbucket i get the following error
(https://i.sstatic.net/39pZ7.png)
Anyone could help, please ?
Thank you in advance for your help, it will be a ...
2
votes
1
answer
612
views
Bitbucket, Jira vs. Control Freak: How does Bitbucket find multiple Jira Issues in multiline commit messages?
We are using Bitbucket Server and Jira for our git development. They are connected via the Application Links setting in Bitbucket.
We try to enforce "correct" commit messages (on push) by ...
0
votes
1
answer
360
views
Automatically add files to Bitbucket Server git repositories when they are created?
I would like to add a file (readme.md) to a Bitbucket Server git repository when it is created. I am looking for suggestions on the best way to do this as well as any example code on how to ...
1
vote
2
answers
1k
views
Don't trigger a PR when target branch changes
I'm using Jenkins 2.209 with Bitbucket server 7.12.0
latly we changed to a multibranch pipeline
I've notice that when a PR is approved and merged into main all the other open PR's that targeting main ...
1
vote
1
answer
367
views
problem with deleting a remote branch (bitbucket-server)
we are using Bitbucket server as remote git server (running in our own datacenter). We went through a merge process via the bitbucket web interface. After the merge the branch is not visible in the ...
0
votes
2
answers
1k
views
Sync Gitlab Repository that import from Bitbucket
I already imported some projects in gitlab-ee with Bitbucket Server import.
We are still using Bitbucket as source control and after a month I must updated imported Projects in Gitlab.
How do i do ...
1
vote
1
answer
869
views
Setting up an old application yarn got stuck
I'm running an sh script and as part of it is using yarn to pull Angular,js packages:
rm -f yarn.lock
rm -rf node_modules
rm -rf web/statecharts
rm -rf release
rm -f fusion-*.deb
rm -f ...
0
votes
1
answer
2k
views
How to Remove a Large File from the History of a Bitbucket Server Repo In-Place
So, someone pushed a large file to a repo in our Bitbucket (we use Bitbucket Server, so it's hosted by us). We have deleted the file but want to get rid in history too as the repo is now quite large ...
1
vote
1
answer
314
views
Jenkins does not run the building process after a push
I have the following initial situation:
I have a Docker container running Jenkins 2.379
This Jenkins has the Bitbucket Server Integration and the Bitbucket Branch Sourch Plugin installed
The ...
1
vote
0
answers
87
views
Webhook stop working after rename Bitbucket repo
I've setup Bitbucket webhook to triger Jenkins job by using bitbucket-push-and-pull-request plugin and work as I need.
I had to rename the repository in BitBucket settings, then change the url in the ...
0
votes
1
answer
1k
views
Is it possible to execute a step for folder and commit specific steps with Bitbucket-pipeline.yml file in bitbucket?
I have 1 common project including both frontend and backend, sometimes backend sometimes frontend is getting new commits but my pipeline yml is working for both of them and deploying both to server ...
1
vote
1
answer
4k
views
Unable to open your web browser to 'git@...' , do you have a default web browser set?
On the icon bar of Atlassian SourceTree the Remote-globe icon shows a red exclamation point badge indicating an error. When clicked, a pop up message appears saying "Unable to open your web ...
3
votes
0
answers
644
views
Is it possible to add some custom data to the event payload body or headers sent to a Bitbucket webhook?
I want to add a few strings to the existing event payload that is delivered to a webhook. It doesn't matter if i can send them in the payload body or as Custom HTTP Headers.
I've checked the ...
1
vote
1
answer
726
views
Bitbucket Server ScriptRunner call to external Rest API in MergeCheck Permissions?
I am new to groovy and bitbucket server script runner and currently do not have admin access to our server. I am attempting to write a simple MergeCheck for bitbucket server that will call to an ...
1
vote
1
answer
533
views
How to detect if a merge (from a pull request) will result in no files being modified?
I have created a repository hook on Bitbucket that automatically creates a pull request from one branch to another (and merge it) when some specific conditions are fulfilled. I would like to detect ...
0
votes
1
answer
356
views
Jenkins webhook build pull requests from forks
We are using bitbucket-push-and-pull-request plugin in order to build our project. The pipeline is set to checkout the source repo when webhook is triggered and everything works fine, when PR's coming ...
0
votes
0
answers
68
views
Unable to clone bitbucket repo
I was trying to clone bitbucket repo but I get very weird error saying
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
I tried to clone with --depth 1 but no luck, also ...
0
votes
1
answer
2k
views
How to set the secret in Bitbucket Server Create Webhook API call
I have crafted a curl which looks something like this. It successfully creates a webhook in BitBucket Server, however, it does not set the 'secret' value, and because of this when the webhook is ...
1
vote
1
answer
318
views
How to identify in bitcuket if commit came from cherry pick or just copy
I have git branch where a developer did cherry pick for one commit. After he pushed the commit, how can I know from bitbucket GUI (Pull request) if this commit came from cherry pick (as I expected) or ...
1
vote
1
answer
746
views
How can you deploy a bitbucket-plugin (already built as jar) to the server via terminal?
We run a Bitbucket Server on version 7.21 and have recently developed a Plugin for it. Since this plugin finally reached a stable Version we wanted to integrate it into our cd/ci pipeline (bamboo).
We ...
1
vote
0
answers
180
views
How to automatically triggers Jenkins job when there is a Git tag push to Bitbucket server
I am not able to figure out how to automatically triggers Jenkins job when there is a Git tag push to Bitbucket server using multibranch pipeline. I can manually trigger it but automatic trigger isn't ...
1
vote
0
answers
2k
views
Getting an Insomnia Error while using Git Sync and Bitbucket server
Our team is trying to setup a repository to share all the API tests. We decided to host the repository ourself with Bitbucket Server, but end up with an error while using the Git Sync function in ...
1
vote
0
answers
300
views
Getting an error while trying to use webhooks for jenkins that is in aws for bitbucket
This is the error while im trying to trigger webhook from bitbucket for jenkins that was placed in AWS :-
Unable to connect to the URL specified within the timeout, please check the host and port are ...
0
votes
1
answer
643
views
Trying to create tag request in Atlassian Bitbucket using curl REST API
I want to create a tag for a specific branch, but I have the following error:
{"errors":[{"context":null,"message":"Can not instantiate value of type [map type; ...
0
votes
2
answers
2k
views
how to prevent merge of unapproved pull requests in bitbucket
We are trying to improve our merge process by protecting specific branches from merge of any unapproved pull request.
The developer create a pull request and he/she can´t merge it until it is at least ...
-1
votes
1
answer
94
views
How to issue Git commands from a script? [duplicate]
I'm trying to make a commit to a file, create a new branch in a bitbucket repository in my python script, how can I do that?
2
votes
1
answer
2k
views
how do you install R packages from a private git repo with a PAT?
I am trying to install an R package from a private git repository hosted on my employer's internal Bitbucket server.
I have had success using remotes::install_git() for other projects on public ...
1
vote
0
answers
351
views
Is git merge and Atlassian pull request effectively the same?
My developer team is working on a big branch that aims to be merged into the develop branch in the future.
This big branch acts like a mini develop branch, so we practice the use of pull requests to ...
0
votes
0
answers
230
views
How Do I Prune The Server reflog From Bitbucket?
This question is about Bitbucket server (where I have admin) and not the cloud offering.
I have mistakenly pushed a branch to the wrong project and merged it to an integration branch with a pull ...