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*.

933 questions
36
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
  • 378
  • 1
  • 3
  • 6
33
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
  • 3,970
  • 6
  • 20
  • 35
31
votes
2 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
  • 4,833
  • 7
  • 41
  • 77
25
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…
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
  • 7,902
  • 14
  • 74
  • 107
23
votes
3 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
  • 21,352
  • 30
  • 113
  • 196
23
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
  • 20,109
  • 28
  • 106
  • 192
21
votes
7 answers

Receive error 'Invalid legacy provider address' with Terraform in Bitbucket pipeline

I'm trying to deploy a bitbucket pipeline using terraform v0.14.3 to create resources in google cloud. The pipeline fails with error: Error: Invalid legacy provider address This configuration or its associated state refers to the unqualified…
Laura H.
  • 261
  • 1
  • 2
  • 6
20
votes
3 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
  • 13,762
  • 1
  • 33
  • 58
19
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…
13
votes
1 answer

Can "if" statements be used in bitbucket pipelines?

Im trying to run the following step, but it does not execute the "if" steps (lines 5 and 6) (I'm pretty sure they should as the directory tested for does not exist, i tried in multiple formats of bash if, but all of them fails. Is there a way to…
12
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
  • 202,011
  • 255
  • 600
  • 878
12
votes
2 answers

How to programmatically invalidate Bitbucket Pipeline's cache?

I have a node_modules cache in my Bibucket Pipeline and I added new module (eg yarn add react-modal) - how to make Bitbucket pipelines detect new yarn.lock and invalidate its cache?
Marecky
  • 1,424
  • 1
  • 19
  • 35
11
votes
1 answer

NPM not installing devDependencies on bitbucket pipeline?

I'm trying to setup my first Bitbucket pipeline which simply builds my application and deploys it to my FTP server using the following bitbucket-pipelines.yml image: node:6.9.4 pipelines: default: - step: caches: - node …
NealVDV
  • 1,812
  • 1
  • 20
  • 44
10
votes
1 answer

Error: unable to load R code in package 'graphics' when compiling R 3.6.0 on Linux

I'm encountering a bug when building R on the amazonlinux:2018.03.0.20190212 docker image in bitbucket pipelines. The strange thing is if I run an EC2 (Amazon Linux 2018) I can run the exact same commands with no error. Does anyone know how to solve…
8t12c7081
  • 544
  • 1
  • 5
  • 24
1
2 3
62 63