Questions tagged [bitbucket-server]

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

Bitbucket Server (formerly known as Atlassian Stash) is a tool for "Git Repository Management for Enterprise Teams". It provides many features comparable to GitHub and Bitbucket.

Including:

  • Creating git repos
  • Managing access by individuals and groups
  • Linking JIRA issues to commits
  • Creating and managing pull requests
819 questions
0
votes
0 answers

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/steps to get here.
0
votes
0 answers

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" -X PUT -d '{"title":"Title name", "url":…
The Mungax
  • 35
  • 2
  • 9
0
votes
0 answers

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/") && it.type == RefChangeType.ADD } but not sure which…
Tradjincal
  • 180
  • 2
  • 5
0
votes
1 answer

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 from the origin repo. When the pull requests…
0
votes
0 answers

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 shows "1 commit" which is fine. The build #6723…
0
votes
0 answers

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 tried with increasing buffer size in…
Rohit W
  • 45
  • 7
0
votes
1 answer

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 triggered it fails with a 'missing signature in…
Asher
  • 348
  • 1
  • 3
  • 19
0
votes
0 answers

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 on "UNABLE TO ACCESS YOUR ACCOUNT?" it showed…
Katja
  • 131
  • 1
  • 6
0
votes
0 answers

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 admin page to do this?
0
votes
0 answers

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 there any way to store the scope of jira?
Sammy
  • 1
  • 1
0
votes
0 answers

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 working when there is a new tag push to the…
0
votes
1 answer

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; class com.atlassian.stash.internal.rest.repository.RestCreateTagRequest, [simple type,…
Vladut
  • 647
  • 1
  • 10
  • 35
0
votes
2 answers

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 from one reviewers approved. How to protect…
Stefan
  • 160
  • 1
  • 11
0
votes
0 answers

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 update this mini develop branch (although our…
Li JY
  • 63
  • 2
0
votes
0 answers

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 request. The commit isn't sensitive data per-se but it…
opticyclic
  • 7,412
  • 12
  • 81
  • 155