Questions tagged [bitbucket-server]

Bitbucket Server (formerly known as Atlassian Stash) is a tool for "Git Repository Management for Enterprise Teams"

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Get audit logs from bitbucket server rest api

I want to get audit logs from bitbucket server rest apis. I tried the audit apis https://docs.atlassian.com/bitbucket-server/rest/4.7.1/bitbucket-audit-rest.html to get these logs. But I am getting ...
  • 43
0 votes
1 answer
12 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
2 answers
63 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
65 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 ...
  • 6,679
0 votes
0 answers
22 views

Biutbucket server Rest API - look up pull requests with specific commit

Bitbucket has a remote merge facility. In the event that a target branch already contains the commits in a pull request, the PR will be remotely merged.  I would like to determine which pull requests ...
  • 6,765
0 votes
0 answers
24 views

Bitbucket Server Webhook does not trigger Jenkins Pipeline

I have a Jenkins Pipeline that is connected to a Bitbucket Server Repo. The pipeline is configured with the Bitbucket Jenkins Plugin (version: 223.vd12f2bca5430) and is inside a Docker Container (PORT ...
0 votes
0 answers
28 views

Mirror Bitbucket Server repo in Bitbucket Cloud?

As part of some infrastructure code I am writing with Terraform, I am trying to deploy a Google cloud function. However, in the terraform code for the function, it is mandatory to specify a Cloud ...
0 votes
0 answers
96 views

How to add a markdown pull request comment with Bitbucket Server REST API

I'm trying to add a markdown comment to a pull request in Bitbucket Server. Following their documentation I found this: https://confluence.atlassian.com/bitbucketserver084/markdown-syntax-guide-...
0 votes
0 answers
42 views

Git log searching all commits

I'm enumerating every repository on a bitbucket server and running git log, from within python, in order to search through all commits / branches for a specific string. Upon running git log seen below:...
1 vote
1 answer
76 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 ...
  • 65
0 votes
0 answers
18 views

404 when trying to open a PR via pre-populated URL in the browser

Trying to open a BitBucket PR with just the URL, with the dest. and feature branches pre-populated: https://bitbucket.org/<repo_name>/pull-requests/new?source=<source_branch>&dest=<...
  • 190
1 vote
0 answers
19 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 ...
  • 459
0 votes
0 answers
111 views

bitbucket code search API getting 401 error

I am trying to use the bitbucket code search API and I am getting 401 error "Token is invalid or not supported for this endpoint." I created a repository access token and can access this ...
0 votes
1 answer
224 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,827
0 votes
0 answers
73 views

Bitbucket cloud API - V 2.0, I need to find the the records which are newly created above the datetime given

I'm integrating the bitbucket APIs and I'm calling many APIs from the backend I want data that are created newly and greater than given DateTime so is there any parameter in the APIs to find data ...
-1 votes
1 answer
695 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 ...
0 votes
0 answers
150 views

Bitbucket (server API) treats new files as renamed/copied old ones. Is there a way to prevent this?

The problem: I'm using bitbucket stash (server) API in a script for my project with the {path} api method: /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/browse/{path:.*} The idea was to ...
1 vote
0 answers
96 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 ...
  • 67
0 votes
0 answers
47 views

How to list the members present in an group in Bitbucket Datacenter model using Bitbucket API using Python?

I'm trying to get the list of users are in an group from Bitbucket Datacenter model using Python, am going through the bitbucket-API doc but could get till this point yet. Kindly let me know of ideas/...
1 vote
0 answers
153 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 ...
0 votes
0 answers
83 views

How to use cURL to add webhook to repository in BitBucket

So I've tried to make a cURL script that adds a webhook to my repository, but it doesn't work. BitBucket version= Atlassian Bitbucket v7.21.5 curl -u 'usn:pass' -H "Content-Type: application/json&...
1 vote
1 answer
94 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 ...
  • 4,129
0 votes
0 answers
10 views

On bitbucket, forbidden tag when they are not on master

on bitbucket, is it possible to reject tags push which are not on master branch with a prehook. I started with the following snippet refChanges.any { it.ref.id.startsWith("refs/tags/") &...
0 votes
1 answer
21 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 ...
  • 459
0 votes
0 answers
72 views

Commits in changes sometimes disappear in Pipeline Stage View

When a commit is pushed on our Bitbucket server, a Jenkins pipeline is triggered. The picture below shows 2 executions of the pipeline, each one triggered by 1 commit. As you can see, the build #6722 ...
0 votes
0 answers
36 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 ...
  • 45
0 votes
1 answer
305 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 ...
  • 348
0 votes
0 answers
58 views

Bitbucket password changed automatically

my Atlassian Bit bucket repository password get changed, when I didn't changed it (it sounds weird). Now I am trying to login and it is throwing wrong username or password error. When i tried to click ...
  • 131
1 vote
1 answer
103 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,228
0 votes
0 answers
31 views

Is there any way to add a custom merge blocking issue to Bitbucket pull request?

My goal is to add extra restriction to prevent pull request from merging. In my case, I wanna block merge until linked Jira issue will have a specific status. Is there any REST API or some sort of ...
0 votes
0 answers
20 views

Finding jira scope using OAuth2 authentication

How can I store the jira instance to atlassian.jira.jira variable after doing the oauth2 verification. In the Atlassian.sdk, I can only find the way to do using basic authentication and oauth 1. Is ...
  • 1
1 vote
1 answer
21 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 ...
  • 15
0 votes
0 answers
61 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 ...
0 votes
0 answers
59 views

Invoke-RestMethod failing to download actual file from the Bitbucket

I'm trying to download config files from the bitbucket repository, using the RAW file link, but when the repository is set to private, it downloads file with HTML content like <!DOCTYPE html><...
0 votes
0 answers
11 views

Self-built bitbucket data center to create git warehouses in batches

I have hundreds of git repositories waiting to be migrated from github to a local self-built bitbucket server. Is there any API to help create these blank repositories in batch on local bitbucket ...
0 votes
0 answers
395 views

Is there any Bitbucket server REST API for folder /Sub-folder creation

I found below documentation for Bitbucket Server API but it does not say anything about creation of Folder/Sub-Folder https://docs.atlassian.com/bitbucket-server/rest/4.5.1/bitbucket-rest.html We ...
1 vote
0 answers
614 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 ...
  • 13
1 vote
0 answers
184 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
262 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; ...
  • 645
0 votes
2 answers
566 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 ...
  • 158
0 votes
0 answers
139 views

404 null error on bitbucket tag creation using http Request POST Method

I am trying to create a tag on bitbucket using below code. Got the commit hash from the previous POST call on branch creation and stored the same in ${response.latestCommit} ...
  • 1,214
0 votes
0 answers
19 views

Run a python script as a check while merging pull request from feature branch to origin/Development

I have a python utility which I want to execute before merging every pull request from feature branch to origin/Development. Is there a way to automate this check in bitbucket to make sure pull ...
-1 votes
1 answer
68 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?
  • 9
2 votes
1 answer
483 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 ...
0 votes
0 answers
184 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 ...
  • 63
0 votes
0 answers
48 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 ...
  • 7,100
0 votes
0 answers
80 views

PR diff shows existing files as new files when creating a PR from Dev to master branch

I'm creating a PR from Dev to the master branch with a single change in a file in bitbucket. When I create the PR, I'm seeing a total of 20 files being added in addition to the one I'm changing. The ...
0 votes
0 answers
374 views

Unable to apply a tag to branch from Bitbucket pipeline

I have a self hosted runner running on Windows. I have a step in my pipeline to create a label and tag the current branch with that label. I looked at long thread in this community that it should work....
  • 1,688
4 votes
0 answers
231 views

How do I share self hosted BitBucket Windows Pipeline runner across main and fork repositories

I have a main BitBucket repo say project.git. I have a self hosted Windows runner setup to monitor changes to this repo and kick off a build. It has been working great. I forked the repo to say joe....
  • 1,688
0 votes
0 answers
113 views

fetch activities from bitbucket that were taken yesterday via api 1.0

I am monitoring lots of projects/repositories in Bitbucket server via API 1.0. Retrieving projects, repos, pull requests and commits since last time I did is relatively easy: I have to save the IDs of ...
  • 93

1
2 3 4 5
17