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

"Stash pullrequest builder" plugin for Jenkins can't connect to Stash

I try to integrate Stash and Jenkins together using "Stash pullrequest builder plugin". On their page it is said, that it should be available variable "${pullRequestId}". But I do not have it for my job. There is nothing in job logs for that…
0
votes
1 answer

Where to put .p12 file for a Stash plugin?

So I'm trying to write a Stash post receive hook plugin that eventually writes some pertinent information to a Google spreadsheet. To do this, I have to pull the private key for Oauth2 authentication from a .p12 file. I made a couple test projects…
0
votes
1 answer

Restricting merge in Stash to main branch if SonarQube Code Quality gates fail for a project

DEV branch - Dev env MAIN branch - All higher envs Currently we have a DEV branch in Stash for which we fail builds if Quality Gate thresholds are not met in SonarQube using the build breaker plugin But we have also allowed DEV to skip the build…
Jeel
  • 2,227
  • 5
  • 23
  • 38
0
votes
1 answer

When does git detect updates to pull request?

Environment: Atlassian Stash v3.11.2 (https://hub.docker.com/r/atlassian/stash/) Git client (1.9.1) And a git novice (me) On pushing changes to a file test.txt on branch b1, I see a prompt to create a pull request, which I did (id 1). Then, on…
Parag Doke
  • 863
  • 7
  • 17
0
votes
0 answers

Stash pre-receive hook for checking file types?

I'd need to create a pre-receive hook for Stash (Atlassian) that can validate the file types in each commit. The goal is to reject types that are supposed to be stored in Maven, e.g.: DLL files, images, etc. I found some examples for hooks, but I…
Tyrel
  • 81
  • 5
0
votes
1 answer

Way to disallow Stash merges for failed pull request builds with Stash pullrequest builder plugin

Is there a way to disallow Stash merges for failed pull request builds with Stash pullrequest builder plugin?
0
votes
2 answers

How to merge pull request conflicts when pull request is from a forked repo?

I have run into this situation where a coworker forked a repo and made some changes and commited and pushed into git and created a pull request for me. We are using Stash from Atlassian and when I try to merge the pull request I get message to…
Nohsib
  • 3,614
  • 14
  • 51
  • 63
0
votes
0 answers

Does "Stash pullrequest builder plugin" for Jenkins supports single pull request building?

If you, provide, please, an example. I tried to use non-plugin parameter Refspec: +refs/pull-requests/$PULL_REQUEST_ID/from:pull/$PULL_REQUEST_ID But without a successful result.
0
votes
1 answer

Stash notifier plugin for jenkins generates the wrong jenkins URL

I am using the Stash Notifier plugin on jenkins to notify Stash of sucessful builds. When you click on the link for the build (Green tick link) in Stash, it pops up a dialog with a link back to jenkins. The URL it uses to link back to jenkins is…
eeijlar
  • 1,232
  • 3
  • 20
  • 53
0
votes
1 answer

Cannot push new branch with same name as a deleted branch to create a branch on the remote repository

Ok the title is pretty confusing but heres what happened: -Had a local branch with its corresponding remote branch -Deleted both branches -Recreated branch with same name, and applied my changes -Cannot push to remote repository because: 'Updates…
alibaba97
  • 21
  • 1
  • 5
0
votes
1 answer

Git push error while trying to push mirror to remote repository

I am trying to clean up git repository. There are some identified big files whose size is reduced and recommitted. The issue is history still has old files. So I used bfg cleaner job to prune the git repo. For this I first create a mirror clone of…
nishat
  • 947
  • 2
  • 8
  • 15
0
votes
1 answer

SourceTree / BitBucket: Need Script to Add Many Versions of Project

I have a VBA project that has been religiously backed up daily for 12 months by exporting all modules to an otherwise empty folder; folder name corresponds to the backup date. Recently I discovered SourceTree and BitBucket, so now I want to add all…
0
votes
0 answers

Unable to push to repository in stash

I am not able to check in my code.I am getting this failure message attached in the snapshot. I am using eclipse version 4.4 to perform this operation.
sakshi
  • 283
  • 3
  • 15
0
votes
1 answer

How to Revert a Merge commit on Remote branch in Atlassian Stash GIT

I am new to GIT (Atlassian Stash), Using SourceTree for all the GIT operations. I have merged two branches in GIT using Merge Branch1 into current branch option and committed the changed to the branch. I have learned about Reset current branch to…
Mayank
  • 1,351
  • 5
  • 23
  • 42
0
votes
1 answer

Could I swap fork relationship between two git repos in Atlassian Stash

I have two git repos like below in Atlassian Stash / Bitbucket Enterprise. Repo2 is forked from repo1, but has no change yet. I would like to change repo2 to be master repo and repo1 to be fork of repo2. . How can I reverse the relation?
Jayan
  • 18,003
  • 15
  • 89
  • 143