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
60
votes
11 answers

"Invalid legacy provider address" error on Terraform

I'm trying to deploy a bitbucket pipeline using terraform v0.14.3 to create resources in google cloud. after running terraform command, the pipeline fails with this error: Error: Invalid legacy provider address This configuration or its associated…
Laura H.
  • 661
  • 1
  • 5
  • 6
58
votes
5 answers

Bitbucket Pipelines - multiple branches with same steps

Is it possible to combine multiple branches that have the same steps within bitbucket pipelines? ex: The teams I work on use one of two names for their review branches, either "rev" or "staging". Either way the same steps are used to publish to our…
Gery Teague
  • 598
  • 1
  • 4
  • 6
51
votes
4 answers

Make variable visible across steps in Bitbucket pipelines?

I would like to share a variable across two steps. I define it like: - export MY_VAR="FOO-$BITBUCKET_BUILD_NUMBER" but then when I try to print it in other step: - echo $MY_VAR it's empty. How I can share such variable?
pixel
  • 24,905
  • 36
  • 149
  • 251
45
votes
5 answers

Bitbucket Pipelines share SOME steps between branches

Is it possible to share steps between branches and still run branch specific steps? For example, the develop and release branch has the same build process, but uploaded to separate S3 buckets. pipelines: default: - step: script: …
YarGnawh
  • 4,574
  • 6
  • 26
  • 37
43
votes
3 answers

Is it possible to use multiple docker images in bitbucket pipeline?

I have this pipeline file to unittest my project: image: jameslin/python-test pipelines: default: - step: script: - service mysql start - pip install -r requirements/test.txt -…
James Lin
  • 25,028
  • 36
  • 133
  • 233
37
votes
3 answers

Using BitBucket Pipelines to Deploy onto VPS via SSH Access

I have been trying to wrap my head around how to utilise BitBucket's Pipelines to auto-deploy my (Laravel) application onto a Vultr Server instance. I have the following steps I do manually, which I am trying to replicate autonomously: I commit my…
Stefan Dunn
  • 5,363
  • 7
  • 48
  • 84
28
votes
4 answers

android environment using docker and bitbucket pipelines

I am very new to Bitbucket pipelines (Beta) and docker.No previous experience on CI integration I followed this question , But no clear description for beginners I am trying to set up Continuous Integration (CI) in Bitbucket Pipelines for Android…
27
votes
1 answer

How to run pipeline only on pull request to master branch

Bitbucket pipelines allows to define checks on pull-requests and has glob filter that allows checking source branch. pipelines: pull-requests: '**': #this runs as default for any branch not elsewhere defined - step: script …
Margus Pala
  • 8,433
  • 8
  • 42
  • 52
24
votes
4 answers

How to enable / setup Dependency Caches for apt-get on BitBucket Pipelines

I am using the following code in my bitbucket-pipelines.yml files to remotely deply code to a staging server. image: php:7.1.1 pipelines: default: - step: script: # install ssh - apt-get update && apt-get install…
Niraj Shah
  • 15,087
  • 3
  • 41
  • 60
24
votes
3 answers

Android CI using Bitbucket Pipelines and Docker

I am trying to set up Continuous Integration (CI) in Bitbucket Pipelines for Android. I have created a sample blank activity using Android Studio 2.1.1. With Pipelines I'm using the uber/android-build-environment Docker container which creates the…
Ryan R
  • 8,342
  • 15
  • 84
  • 111
22
votes
9 answers

Fastlane Apple Generic versioning not enabled in this project

What I’m doing is trying to make bitbucket pipline do my iOS CD, I included docker fastlanetools/fastlane image and in the steps i pull and run the docker image everything is okay and i was able to let fastlane command work by calling fastlane beta…
ANeme
  • 731
  • 5
  • 19
22
votes
2 answers

How can I write a multi-line if block on Bitbucket Pipeline?

From here I learned that Bitbucket Pipeline supports ifs statements. How do I do multi-line blocks inside if statements? This doesn't compute: script: - if [ $BITBUCKET_BRANCH == "master" ]; then; echo Line1 …
ripper234
  • 222,824
  • 274
  • 634
  • 905
22
votes
2 answers

Reduce memory consumption in rake assets:precompile

Problem: I'm running out of RAM while performing the rake assets:precompile task in an automated build. Are there any strategies to do an incremental precompile, or in some other way perform the precompile stage without consuming as much RAM? It…
18
votes
4 answers

bitbucket pipeline error - container 'docker' exceeded memory limit

I am seeing bitbucket pipeline error - container 'docker' exceeded memory limit while running bitbucket pipeline. I tried to use all possible service memory limits as per below documentation, but issue was not resolved. Databases and service…
ElasticSearchUser
  • 191
  • 1
  • 1
  • 4
17
votes
3 answers

How to prevent a step failing in Bitbucket Pipelines?

I am running all my test cases and some of them get fail sometimes, pipeline detects it and fail the step and build. this blocks the next step to be executed (zip the report folder). I want to send that zip file as an email attachment. Here is my …
Shubhendu Pandey
  • 175
  • 1
  • 1
  • 6
1
2 3
89 90