Questions tagged [bitbucket]

A source control system and git hosting site from Atlassian.

Filter by
Sorted by
Tagged with
17 votes
3 answers
9k views

What are best practices for using Ansible Vault on public CI's and Source Control Repositories like BitBucket?

Introduction On a private CI's and Source Control Repositories like Gitlab-ce it is possible to copy an ~/.vault_pass.txt to the server and let it use by the CI to decrypt files using Ansible. ...
030's user avatar
  • 13.2k
14 votes
4 answers
8k views

Is running docker-compose not supported in BitBucket?

Aim The aim is to run docker-compose in BitBucket pipelines Attempt bitbucket-pipelines.yml image: docker/compose:1.12.0 pipelines: default: - step: script: - docker-...
030's user avatar
  • 13.2k
13 votes
2 answers
3k views

how to automatically create a subdomain for every pull request

Background I got a team of untechnical QA's who have to do testing on iOS/android apps for every Pull Request (PR) that gets created by my backend team. Question This is what I want to do: ...
abbood's user avatar
  • 473
11 votes
3 answers
7k views

How to close a branch by default after a pull request has been merged in Bitbucket?

By default a branch will remain in Bitbucket when a Pull Request (PR) has been merged. How to ensure that a branch will be removed after a PR has been removed? When the option is enabled then the ...
030's user avatar
  • 13.2k
11 votes
2 answers
6k views

Git & Jenkins: get latest green commit on branch

We're just starting to push for CI-CD and as a baby step we're going to try updating a stack with the latest green develop once every couple of hours. I am fairly new to Git/Bitbucket, and can't ...
Alex's user avatar
  • 4,512
8 votes
3 answers
9k views

Jenkins Pipeline and stash Pull Request Builder not working on PR create/update

Below is the requirement needed to achieve using the Jenkins Pipeline and i am new bee into Jenkins Pipeline. After completing development work and pushing his changes to Bitbucket the user creates a ...
user1876040's user avatar
8 votes
1 answer
1k views

What are best practices of deploying docker-compose using Ansible?

Ansible is used to deploy docker-compose on a system and subsequently start the container. When ansible runs from the local system, the docker-compose file is deployed using Ansible. When the code ...
030's user avatar
  • 13.2k
7 votes
1 answer
3k views

Jenkins & Bitbucket; cancel previous build if new commit made to same branch?

We have Jenkins running unit tests when commits are made to our repo in Bitbucket. This is controlled by the Bitbucket Plugin, ie via a Bitbucket webhook. Currently, if a commit is made to Branch A ...
Alex's user avatar
  • 4,512
6 votes
1 answer
3k views

How to bind ports for docker container in bitbucket pipelines?

I'd like to test an application using bitbucket pipelines with a custom docker image running some services. I have a dev docker image which runs all the services I need in order for tests to pass. ...
ConorSheehan1's user avatar
6 votes
1 answer
4k views

Is it possible to create a robot account in bitbucket without creating a new email account?

Introduction According to this article a user account could be given to a robot for Continuous Integration purposes. Method The IT department created a new email account, this was used to login to ...
030's user avatar
  • 13.2k
6 votes
1 answer
639 views

How can I automatically post Codefresh build results to pull requests in Bitbucket?

I have a BitBucket Cloud repository with a WebHook to trigger Codefresh builds on Pull Requests. I would like the build results to appear as comments on the PRs, similar to the way Travis integration ...
aebabis's user avatar
  • 161
6 votes
1 answer
11k views

Is it possible to show a code coverage badge in bitbucket repositories?

In github it is possible to show a code coverage button. Is this possible in bitbucket as well? https://github.com/dwyl/repo-badges Attempts This site was found https://bitbucket.org/site/master/...
030's user avatar
  • 13.2k
5 votes
1 answer
8k views

Trigger jenkins pipeline job with Bitbucket hook

I'm missing something obvious here. Is there no way to trigger a Jenkins scripted pipeline job via Bitbucket hook? There's a bug out about it but it's been around for years with apparently no fix. ...
Alex's user avatar
  • 4,512
4 votes
1 answer
1k views

Why does `docker-login` fail in BitBucket pipelines?

Aim to login to a private docker registry using BitBucket pipelines. Attempt Based on this documentation the following bitbucket-pipelines.yml: image: docker:latest pipelines: default: - ...
030's user avatar
  • 13.2k
4 votes
1 answer
125 views

Deploying and testing features on a server by more than one developer

I have 4 environments (prod/preprod/SIT/DEV), also two main branches (Master & Develop), two developers work on features (One & Two). Developer One creates a feature (Feature A), he then ...
Rym's user avatar
  • 41
4 votes
2 answers
32k views

JenkinsFile to get git branch name

I want to get git current checkout BRANCH NAME in my Jenkins file here is the code snippet... Here I am trying to push a file to my current branch I have tried many things could not find it... ...
Madan's user avatar
  • 101
4 votes
2 answers
407 views

How to use Jenkins to manage a repository from Github with a submodule from Bitbucket?

For my Jenkins build, I need to manage a Github repository to automate building a project. However, the issue is that this repository needs to pull a submodule from Bitbucket. This requires two ...
david3de's user avatar
4 votes
2 answers
2k views

Jenkins deployment key is not associated with the repository

Using jenkins to pull from bitbucket repository, I got this error: [email protected]:source/source.git +refs/heads/:refs/remotes/origin/" returned status code 128: stdout: stderr: repository ...
spacetrack's user avatar
3 votes
1 answer
20k views

Jenkins shows "No changes in any of the builds."

Description Jenkins job was made and configured to build release branch which already existed and had changes on it before first build. Job also monitors for push on BitBucket and starts building if ...
Najdan Tomić's user avatar
3 votes
2 answers
183 views

Deploy two independently hosted services in production at once without any downtime

I have two different services. Let's say Service A and Service B. Service B is dependent on Service A. Both code bases are hosted in separate repo in Bitbucket and code bases are maintained by ...
Cyberzinga's user avatar
2 votes
4 answers
882 views

Bitbucket Webhook plugin for Jenkins - differentiate between branches

We use Jenkins and have the Bitbucket plugin installed. We've got multiple repos and use webhooks for lots of jobs coming from our foo repo. No problems there, the jobs go off without a hitch. Now ...
Alex's user avatar
  • 4,512
2 votes
1 answer
131 views

Jenkins Testing PR's - allowing broken builds

I have a very large codebase that currently takes ~30 minutes to build via Jenkins. It's connected to our Source control/review system (Let's just say GitHub for now) so that every PR automatically ...
Yeraze's user avatar
  • 123
2 votes
2 answers
88 views

How to incorporate feedback from pull request

I am new to bitbucket. I tried to google it but unable to find exact answer for my question. I created a feature branch. Made few changes in the feature branch then I pushed/committed all the changes ...
Atif Hassan's user avatar
2 votes
1 answer
1k views

Bitbucket Pipeline & Jenkins & Yocto

I want to setup a CD system for a yocto project which is version controlled in a bitbucket repository. I want to write a bitbucket pipeline which triggers a jenkins job on a build server which starts ...
Curunir's user avatar
  • 121
2 votes
1 answer
177 views

Bitbucket pipelines: Deployment destination dependent on commit author

I'd like to create a deployment pipeline triggered on PR creation that would deploy to e.g. 'staging1' environment if it's my commit and 'staging2' if it's a commit of other team member (the idea is ...
asliwinski's user avatar
2 votes
1 answer
1k views

Bitbucket: Is there any option to restrict deletion of release branch only after it is merged to master

We are using GitFlow workflow. After merging the release/* branch to master, we need to close the branch. For this task, we need to provide deletion access to pull request merger but in this case, ...
Akshay Kapoor's user avatar
2 votes
1 answer
175 views

How to update all Bitbucket Repository Issues at once?

Background: There are multiple Bitbucket Repository Issues (BRI). If an issue needs to be edited then an edit button could be clicked and several items, e.g. title and priority could be changed. This ...
030's user avatar
  • 13.2k
2 votes
1 answer
81 views

Proper mapping for service architectures, Docker and BitBucket mapping - how do you do it?

With Atlassian BitBucket, you can have: Projects, which incorporate.. Source code repositories. Now, you could have a microservices with more than just one codebase and need therefore more than just ...
Ta Mu's user avatar
  • 6,782
2 votes
2 answers
3k views

Bitbucket Pull Request Builder Jenkins job is not getting invoked

I have enabled web hooks pull request in Bitbucket like below - And my Jenkins job configurations are as follows - Bitbucket hooks are getting invoked as soon as I create pull request but Jenkins ...
Pramod Kumar's user avatar
2 votes
0 answers
119 views

Jenkins declarative pipeline with mvn, releases and versioned artifactory

We have a requirement to support human defined versions (not auto generated) for patch releases. I'm trying to figure out a way to do this in Jenkins. We have: BitBucket, Jenkins, Nexus/JFrog (either)...
Kashyap's user avatar
  • 121
2 votes
1 answer
340 views

Bitbucket REST API to set 'Branch deletion on merge'

I know that 'Branch deletion on merge' can be set at both project and repo level via UI. What I am looking for the the REST API endpoint for doing this. Similar endpoints for branching model, etc. ...
Kaliyug Antagonist's user avatar
1 vote
2 answers
7k views

How to trigger Jenkins Pipeline by push in specific branch in Bitbucket?

I've created Jenkins Pipeline Job, activated "Build when a change is pushed to BitBucket" trigger. I've also specified branches to build. But pipeline is triggered by all branch changes. Also I've ...
kasymbayaman's user avatar
1 vote
1 answer
79 views

Is there a Radiators for Jenkins and Bamboo?

I need to bring our companies rather old build radiators upto standard so it reflects what our current toolstack looks like. However, we're currently inside a weird limbo between using both Jenkins ...
Alistair Hardy's user avatar
1 vote
1 answer
431 views

How to get code from Bitbucket via Octopus?

Is there a way that I can tell Octopus to take its code from Bitbucket and not GitHub (without using Bitbucket's pipelines)? I couldn't anything under community steps that would let me do that (...
JohnFF's user avatar
  • 423
1 vote
2 answers
111 views

Dev-Ops with bitbucket

I want to improve my current dev CI workflow, I would like to create a server with ISPConfig and some kind of CI tool like Jenkins The catch is It has to all sit on 1 server, I see folks saying ...
Kravitz's user avatar
  • 111
1 vote
1 answer
4k views

How to use comments to trigger rebuilds of Bitbucket pull-requests on Jenkins multi-branch pipeline

I have successfully configured a Jenkins multi-branch pipeline to build my project which is hosted on Bitbucket. I have separate pipeline requirements for the "develop" and "release" branches, and for ...
funkybro's user avatar
  • 111
1 vote
1 answer
360 views

Best Practice Authenticating Jenkins to Bitbucket to Access Team Repository

What's the "best-practice" approach to authenticate a CI tool like Jenkins or Bamboo to BitBucket? I started with App Passwords because it's cheap and easy, but I hate that it's tied to my account ...
Adam's user avatar
  • 113
1 vote
1 answer
20 views

Is is possible to configure settings in Bitbucket globally?

It is possible to configure settings per repository in Bitbucket. Would it be possible to configure settings globally? There are more than 30 repositories at the moment and I would like to avoid that ...
030's user avatar
  • 13.2k
1 vote
1 answer
380 views

Building a pipeline to recognize changes in a terraform template compared to the git commit before and having it apply changes using specified command

Looking to get pointed in the right direction: I am trying to build a pipeline that will recognize changes in a remote terraform template that will recognize changes compared to the previous git ...
SaintLaurent's user avatar
1 vote
1 answer
126 views

Pipeline flow get stuck at “Notifying stash” after finishing all stages

All our CI projects are getting stuck in the Notify stash. eventually, it's passing, but we're trying to understand why it takes so much time. example: 17:03:01 Notifying Stash at "https://bitbucket" ...
arielma's user avatar
  • 339
0 votes
1 answer
1k views

Bitbucket triggers builds on deleted branches

I configured Bitbucket webhook to trigger on Repository push. After each merge (which also deletes the source branch) it triggers build, which fails in Codefresh because of deleted branch. Does anyone ...
isobretatel's user avatar
0 votes
1 answer
374 views

Auto create Jenkins jobs for branches and pull request via declarative code in scm

I am looking to auto create jobs in jenkins upon pull request , branches, master push etc similar to what we do in Gitlab. My SCM is butbucket here. I have so far setup docker based agent integration ...
vgdub's user avatar
  • 103
0 votes
1 answer
179 views

Is it possible to install bitbucket container on Centos?

I'm trying to run the below composefile on centos7: version: "3.3" services: bitbucket: image: atlassian/bitbucket:latest ports: - 7990:7990 - 7999:7999 networks: ...
arielma's user avatar
  • 339
0 votes
0 answers
16 views

BitBucket Commit Status with meta data

I am trying to set additional meta data as seen under Builds section. I found this API which is used to set statuses for builds against a commit hash. { "state": "<INPROGRESS|...
GoodSp33d's user avatar
  • 101
0 votes
0 answers
65 views

Secrets Scanning for Atlassian Bitbucket

I am looking for: A plugin on Atlassian Bitbucket which would help us run scan on entire code to detect any hardcoded secrets A tool/script which could be run in a pipeline right after the code is ...
Biju's user avatar
  • 255
0 votes
0 answers
215 views

Prevent "[Bitbucket] Notifying commit build result" happening during Jenkins pipeline

I use "multibranch with Bitbucket Source" plugin and I have a situation where I need to prevent feature branch from notifying bitbucket, else it influences PR gates and other things. It ...
anVzdGFub3RoZXJodW1hbg's user avatar
0 votes
1 answer
498 views

bitbucket pipeline to push commits to another repo

So this is the scenario i have right now, we have a repo (boilerplate) that contains our infrastructure code, docker files, and pipeline scripts, each time we create a new project we copy this repo to ...
Abdelrhman Mostafa's user avatar
-1 votes
0 answers
133 views

Bitbucket pipelines dind "Cannot connect to the Docker daemon"

I am trying to run end to end tests on a node repo but it needs the postgres container. When I te image: docker:dind pipelines: default: - step: name: Run e2e tests runs-on: ...
c3cris's user avatar
  • 99
-1 votes
0 answers
150 views

Bitbucket - how to update the build logs & artifacts without Jenkins/Bamboo?

I'm using Bitbucket Server and I'm trying to figure out how to update the "rich build status"--the Logs and Artifacts for builds in Bitbucket. Currently, the Bitbucket documentation only ...
jerdub1993's user avatar
-3 votes
3 answers
187 views

What approach should I follow for adopting continuous integration?

I have a WAMP server which hosts a Django application by using a Windows server. Currently I am deploying everything manually. Now I want apply Continuous Integration concepts to an existing ...
niran's user avatar
  • 121