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
1
vote
0 answers

"Webhook to Jenkins for Bitbucket Server" does only work when executed manually

I set up a Git repository on a local Bitbucket server and also set up a Jenkins server with a job that should be triggered when something was committed to that repository. Unfortunately the job only runs when I manually hit the button "Trigger…
schoenk
  • 824
  • 3
  • 13
  • 31
1
vote
0 answers

Bitbucket pre-branch-creation messages

I often find that I would like to remind myself or my teammates to do some task the next time a branch is created. Many times this task doesn't come in as a request to change something. For instance, maybe after the code was merged we realized that…
Kev
  • 99
  • 8
1
vote
1 answer

making a REST API call to Bitbucket Server and trying to pass JSON payload causes an error

I am trying to make rest API call to Bitbucket Server to delete a pull request. I am trying to do it all in one line curl command but getting an error when trying to pass json payload with -d flag. Can you please help. Rest API instructions in…
Dzerlig
  • 247
  • 2
  • 10
1
vote
1 answer

Bitbucket server REST API via Python

I would like to use the REST API service of Bitbucket server in Python. Till now I tried the python module called stashy, but I could not even connect. The snippet import stashy stash = stashy.connect("http://localhost:7990/stash", "",…
bayerb
  • 649
  • 2
  • 9
  • 28
1
vote
1 answer

pre-receive Hook not triggered on server modification

I'm using git with bitbucket, we've a pre-receive hook that checks commit message format, when the push is done from local to remote pre-receive hook works perfectly, but when the commit is done from bitbucket server the hook is not triggered. Is…
AILY
  • 345
  • 2
  • 3
  • 16
1
vote
2 answers

How to restrict branch creation based on pattern in Bitbucket

I am using Atlassian Bitbucket server v4.8.6. How do I restrict restrict branch creation based on pattern. Rules explained below - Only ABC team should be able to create release/ABC-* Only XYZ team should be able to create personal/XYZ-*
1
vote
0 answers

Jhipster-registry spring cloud config can not checkout properties from git branch

we are using jhipster-registry inside docker and started experiencing the below error since last week. Jhipster-registry could not check out from any branch other than master. Registry startup fails with the below error if a branch other than master…
cnu
  • 477
  • 8
  • 22
1
vote
1 answer

Using a githook from a repo leveraging Atlassian's Bitbucket

I have some hooks I wanted to implement on my repo, written in Shell Script and Python. The issues I have though is that under normal circumstances, The server repo would just get a modification. It seems adding a CMS such as bitbucket has…
Fallenreaper
  • 10,222
  • 12
  • 66
  • 129
1
vote
1 answer

How can I determine the closest tag to a given commit using bitbucket rest API?

I want to get the list of commits since the last release, but since I have a lot of git repos to examine, I would like to do it via the bitbucket rest API instead of cloning each and every git repo I want to test. If I do have a clone, my problem is…
Christian Goetze
  • 2,254
  • 3
  • 34
  • 51
1
vote
1 answer

Atlassian Bitbucket (Stash) SSL certificate renewal

So we have a self-hosted version of Atlassian BitBucket running on Ubuntu server which holds the code repository. We use a SSL certificate from DigiCert . Every year we renew the certificate which has never caused issues. However this time most of…
Ravi Singh
  • 431
  • 3
  • 10
  • 23
1
vote
1 answer

Pull request analysis not working in Sonar Qube for bit bucket server(sonar for bitbucket plugin)

Below is the message shown when I create a pull request(which I configured the sonar for bitbucket plugin).Please advise. Thanks. Sonar data unavailable Was not able to fetch data for Sonar project "abc.com". Either your pull request has not been…
sam
  • 77
  • 2
  • 11
1
vote
1 answer

API to get list or repos owned by a Bitbucket-server user?

As a follow up to In Bitbucket API, how can I get a list of ALL licensed users?, I know want to find ALL the repos owned by a user. However, the BB-server API doesn't seem to provide a filter for the repos endpoint? Moreover, seems like repos do not…
Chris F
  • 14,337
  • 30
  • 94
  • 192
1
vote
1 answer

Prevent users to commit on develop/master

We have a bitbucket server, we have introduced the usage of Pull Requests to protect two branches: Master and Develop. This works well and people cannot push anymore to those branch on our bitbucket server. But the issue is that sometimes when we…
J4N
  • 19,480
  • 39
  • 187
  • 340
1
vote
1 answer

Copying all branches from repo1 to repo2 in Git

I am trying to copy all branches from repo1 to repo2 I have executed the following commands but I still don't see branches in repo2 cd repo2 git checkout master git remote add r1remote **url-of-repo1** git fetch r1remote git merge r1remote/master…
meallhour
  • 13,921
  • 21
  • 60
  • 117
1
vote
1 answer

Diff between two branches in Stash

I'm trying to comparing 2 branches in a Stash repository. Giving the two branches in source and destination URL paths showed no difference. But after swapping the branches (source becomes destination and destination becomes source) I see some…