Questions tagged [bitbucket-pipelines]

Questions related to Bitbucket Pipelines CI/CD.

Bitbucket Pipelines is a Continuous Delivery & Continuous Integration (CI/CD) feature that’s built right into Bitbucket Cloud, from Atlassian. It allows developers to easily automate their workflow of building and deploying their code every time they push code to their Bitbucket repositories.

It run the builds inside Docker Container*.

1350 questions
9
votes
6 answers

One ssh-key to all repositories in bitbucket

We have a application account in my server for which we have generated a ssh-key. We need to upload the application account public key to all the repositories in my bit-bucket project. There are so many repositories in my project we can't upload the…
8
votes
1 answer

Bitbucket: Show value of variables marked as secret

For one of my repos I need to see the value I set to a secure property of a deployment (created as described in https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/#Secured-variables). Is there any way of retrieving the value…
SimonSimCity
  • 6,415
  • 3
  • 39
  • 52
8
votes
2 answers

Bitbucket Pipelines - share pip libraries across multiple steps

I am trying to store pip libraries installed in the initial step as artifacts, so that it can be reused in the parallel steps later on. Unfortunately, when "Test part 1" and "Test part 2" are executed, mentioned libraries does not exist. Moreover,…
Artur Drożdżyk
  • 605
  • 1
  • 6
  • 18
8
votes
2 answers

Can I add jest code coverage to Reports in Bitbucket Pull Requests from Pipelines

I have a simple Bitbucket Pipelines configuration: image: node:12.16.3 pipelines: pull-requests: '**': - step: caches: - node script: - yarn install - yarn test The test script…
Denno
  • 2,020
  • 3
  • 19
  • 27
8
votes
2 answers

Bitbucket pipline deploy with rsync - Host key verification failed

I have created a bitbucket pipeline under a repository and i have generated the SSH Keys and have updated the authorized_keys file in the host. Delivery part is carried by rsync, during the deployment phase i'm getting the following error. rsync…
8
votes
2 answers

Is there any way to use dotenv with Bitbucket Pipelines?

As the title says, is there any way to use dotenv with Bitbucket Pipelines for CI purposes, while still adding the (perhaps multiple) (.stage).env to .gitignore? I know Pipeline supports environment variables, and that they can be referenced in…
8
votes
3 answers

How to do git push from bitbucket-pipelines.yml?

I have a node project. What I want to do is on a developer checkin (commit and push), I want to run the bitbucket pipeline which would internally do the following npm install and npm test npm version patch (to increment the version in the…
user1354471
8
votes
1 answer

How to pull from private repo in a bitbucket pipeline?

I have a bitbucket pipeline that works well but now on a project i need to pull from a private repository wich contains a package that is required in my composer.json. When i do a composer install in the pipeline, it stops with this error Failed to…
user3005099
  • 183
  • 1
  • 7
8
votes
2 answers

Bitbucket Pipeline how to setup ssh agent to deploy on a remote server

Here is the workflow I want to achieve: commit code bitbucket pipeline run test on my public docker image bitbucket pipeline executes ansible script to deploy on my public docker image The first 2 steps working fine, but here is the…
James Lin
  • 25,028
  • 36
  • 133
  • 233
8
votes
2 answers

SSH into staging machine from docker instance using Bitbucket Pipelines

Using the new Bitbucket Pipelines feature, how can I SSH into my staging box from the docker container it spins up? The last step in my pipeline is an .sh file that deploys the necessary code on staging, however because my staging box uses public…
Speedy
  • 467
  • 1
  • 6
  • 16
7
votes
2 answers

A locally built Docker image within a Bitbucket Pipeline

What I need is a way to build a Dockerfile within the repository as an image and use this as the image for the next step(s). I've tried the Bitbucket Pipeline configuration below but in the "Build" step it doesn't seem to have the image (which was…
Julian
  • 837
  • 1
  • 11
  • 24
7
votes
3 answers

"Could not complete execution for Gradle Test Executor 2" error appears after gradle execution on bitbucket pipelines

Tools used: Java 8 Gradle 4.0 Selenium Selenium Grid TestNG Docker Bitbucket Bitbucket pipelines When I'm executing my tests via bitbucket pipelines I've got these errors: "Could not complete execution for Gradle Test Executor 2" error (not whole…
Dimencion Rider
  • 145
  • 1
  • 4
  • 13
7
votes
2 answers

Avoid Using Master Branch for BitBucket Pipeline

I'm setting up a CI pipeline on a BitBucket Repository based around docker. I'm running build commands then up then test, basically. This all works so far, but the issue I'm having is BitBucket only commits or lets me edit changes to the…
RoboBear
  • 5,434
  • 2
  • 33
  • 40
7
votes
1 answer

How to git tag release with Bitbucket Pipelines (bitbucket-pipelines.yml)

How to tag a git commit in pipeline using bitbucket-pipelines.yml file?
GetoX
  • 4,225
  • 2
  • 33
  • 30
7
votes
0 answers

Review apps in Bitbucket pipelines?

I am researching into a DevOps workflow that we can use to replace our current DevOps implementation. We are using Bitbucket cloud to host our repositories. While researching I stumbled upon "Review Apps" feature of GitLab CI/CD. Is it possible to…
ajay
  • 91
  • 1
  • 8