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
1 answer

How can I see all opened pull requests on command line?

I have a repo stored on BitBucket and cloned locally, I want to know via command line if that repo has pull requests open in order to invoke that command via shell script. Do you know if that command exists?
1
vote
1 answer

Is it possible to reverse `orderBy` in BitBucket Server API for git tags?

Playing with Bitbucket Server API, I found these docs regarding git tags: /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/tags?filterText&orderBy orderBy: string: ordering of refs either ALPHABETICAL (by name) or MODIFICATION (last…
jakub.g
  • 38,512
  • 12
  • 92
  • 130
1
vote
1 answer

How to fix "AOP configuration seems to be invalid" error?

I am developing a plugin for Bitbucket using atlassian-sdk. When I try to use GitCommandFactory, I run into the below error: "AOP configuration seems to be invalid: tried calling method [public abstract…
kaushikv
  • 135
  • 1
  • 12
1
vote
1 answer

Jenkins job DSL: extract branch with last commit in groovy script

I'm using Jenkins for running jobs automatically. I'm using also Bitbucket Server as a version control system. I set up my Jenkins job DSL on any changes in my Bitbucket repo(on each commit) using some groovy script for job creation: job(jobName)…
smart
  • 1,975
  • 5
  • 26
  • 46
1
vote
1 answer

Gitolite fine-grained branch access on Bitbucket Server

I would like to institute branch-specific access to a number of repositories hosted by a Bitbucket server instance. The problem is that Bitbucket only lets you put in branch-specific restrictions on a repository level. This becomes very inconvenient…
Joseph K. Strauss
  • 4,683
  • 1
  • 23
  • 40
1
vote
0 answers

Bitbucket Merge script working in Gobal Admin but not in Admin to repository

// import the required libraries import groovy.json.JsonOutput import groovyx.net.http.HttpResponseException import groovy.json.JsonSlurper //set the commandline arguements in to global variables def reqUrl = "" def branchUAT =…
Aravind
  • 53
  • 1
  • 8
1
vote
1 answer

Bitbucket hooks: Unable to get stash env variables

I have a pre_receive hook in pre-receive.d folder of git repo, written in shell script, hook is getting executed correctly but the stash env variables are not available with it i.e they return empty values, Is there any server side configuration…
humble_wolf
  • 1,497
  • 19
  • 26
1
vote
0 answers

Bit bucket clone in eclipse

Trying to clone the branch from bit bucket using eclipse. Below i have wrote the steps which i have performed and the error i faced. 1) Installed TortoiseHG 4.0 32 bit from the link 2) Added & Updated the Mercurial software in the eclipse by…
Simbu
  • 766
  • 1
  • 12
  • 37
1
vote
1 answer

Jenkins "checkout" Step Repository Browser Link wrong

I need to use the "checkout" step in my Jenkins Pipeline to generate the Repository Browser Links for my changeset to point to Bitbucket (hosted). The Source looks like stage('Checkout') { checkout([$class: 'GitSCM', branches: [[name:…
Christoph Forster
  • 1,728
  • 4
  • 27
  • 39
1
vote
1 answer

Haproxy config for bitbucket server

I am using haproxy for port forwarding to Bitbucket server ssh. Here's haproxy config: frontend sshd bind *:7999 default_backend ssh timeout client 1h backend ssh mode tcp server localhost-bitbucket-ssh…
Alexander Kim
  • 17,304
  • 23
  • 100
  • 157
1
vote
0 answers

After I pushed a new branch, coworker's commit done in master appears in my branch

Short version: the commit made in master by a coworker appears as if it had been done in a branch I just pushed. The scenario is very simple but I don't understand what happened. I only did two things. First, I created a branch from master…
wishihadabettername
  • 14,231
  • 21
  • 68
  • 85
1
vote
2 answers

Plugin to mark JIRA issue as resolved when pull request is merged

Is there any Stash/Bitbucket plugin which takes care of marking JIRA issue as resolved when request is merged?
user5154816
1
vote
0 answers

Pre-Commit Hook for PMD, Checkstyle and Findbug

I have got a requirement to install Pre-Commit hook in Atlassian Stash(v3.11.6) for PMD, Checkstyle and Findbug to prevent commit, if the code changes does not meet the requirements. Could you guide me on where to get the hook and how to proceed…
Sakthisiga
  • 73
  • 1
  • 2
  • 14
1
vote
0 answers

Can a pre-receive hook block a user from pushing new files/folders?

I am trying to write a pre-receive hook which could block a user from pushing new files and folders. I know how to block a user from pushing changes but now I want to block new files/folders. The user should be able to push updates.
Raj Vaida
  • 318
  • 1
  • 3
  • 8
1
vote
1 answer

Create GIT tags inside Bamboo

I am a completely newbie to the Bamboo. I have repositories stored in GIT and STASH. I am using Bamboo for a build. I am facing an issue while creating git tags in Bamboo before build and pushing it to repositories. Can anyone guide me in right…
aragorn ara
  • 165
  • 3
  • 14