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

Bitbucket Container 'Build' exceeded memory limit - When taking android build

I use bitbucket pipeline for build android app but every time i am taking memory limit error. Error message: Container 'Build' exceeded memory limit. Bitbucket yml file: image: java:8 pipelines: branches: feature/*: - step: …
11
votes
2 answers

Is there a way to cache DockerHub image in bitbucket pipeline?

I am using external docker image from dockerhub. In each step the dockerimage is pulled from dockerhub again and again. Yes it is desired workflow. My question is can we cache this image, so that it wont pull from dockerhub in each step? This…
Em Ji Madhu
  • 674
  • 2
  • 9
  • 23
11
votes
3 answers

Run pipeline only on changes in one dir

So I've got a project with some structure. And whenever I push changes to any file pipeline is run. But I want it to run only when there are changes in particular directory. Is it even possible?
hasrthur
  • 1,410
  • 15
  • 31
11
votes
2 answers

Bitbucket Pipelines run npm fails

I have configured a PHP image for my Bitbucket's Pipelines that runs scripts thru a YML file. I have a laravel repository and want to execute a build command. Though the problem is that on my script, when it runs the npm install, it fails. bash:…
basagabi
  • 4,900
  • 6
  • 38
  • 84
11
votes
3 answers

Is there an easy way to change to a non-root user in Bitbucket Pipelines Docker container?

Bitbucket Pipelines is using Docker containers to executes tasks and by default Docker containers run as root. This is a problem for NPM's lifecycle scripts because NPM tries to downgrade its privileges when it runs scripts. When executing the…
10
votes
4 answers

Debian 11 Update broke samueldebruyn/debian-git?

I have a staging, and a production server setup on Bitbucket Pipelines running a yaml script with the following; image: samueldebruyn/debian-git name: Staging - Upload FTP script: - apt-get update …
levi
  • 1,566
  • 3
  • 21
  • 37
10
votes
1 answer

Passing extra commands to a docker image from bitbucket-piplines.yml

Trying to set the default charset and collation of a mysql:5.7 docker image using Bitbucket Pipelines, the documentation is a little vague mentioning: If you need to configure the underlying database engine further, refer to the official Docker Hub…
zanderwar
  • 3,440
  • 3
  • 28
  • 46
10
votes
4 answers

Can I execute a pipeline from other pipeline in bitbucket pipelines?

I has the two repositories in bitbucket pipelines, both with pipelines enable. How to execute the pipeline after the other pipeline complete?
Afonso Rodrigues
  • 123
  • 1
  • 2
  • 9
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
  • 683
  • 3
  • 9
  • 30
10
votes
3 answers

Bitbucket Pipelines - How to use the same Docker container for multiple steps?

I have set up Continuous Deployment for my web application using the configuration below (bitbucket-pipelines.yml). pipelines: branches: master: - step: name: Deploy to production trigger: manual …
10
votes
3 answers

How to use VPN with Bitbucket Pipelines

I need to access a remote server from Bitbucket Pipelines. This remote server is available only to a specific host which has its IP address whitelisted. Here is what I want: Pipelines <---> The gateway host <---> The remote server I was trying to…
Max Malysh
  • 29,384
  • 19
  • 111
  • 115
10
votes
2 answers

.NET Core BitBucket Pipeline Builds Fail - Wants project.json when I have .csproj

I was searching before posting but it seems that VS2017 stops using project.json and instead uses .csproj file so when I try to run builds on either TFS or BitBucket, I get fails because the builds are looking for a project.json. Specifically a…
9
votes
1 answer

Send argument to yml anchor for a step in bitbucket-pipelines.yml

I would like to send arguments when I call an anchor with bitbucket pipelines Here is the file I am using, I have to call after-script because I need to push to a certain S3 bucket definitions: steps: - step: &node-build name: Build…
9
votes
1 answer

Selective service deployment with bitbucket pipelines in a monorepo with multiple microservices

We have a serverless framework project with different microservices in a monorepo. The structure of the project looks like: project-root/ |-services/ |-service1/ |-handler.py |-serverless.yml |-service2/ ... …
9
votes
1 answer

How to go about implementing semantic versioning with bitbucket pipelines and branches?

I have a python app and I want to implement semantic versioning as such: MAJOR.MINOR.PATCH.BUILD. I want to automate it as much as possible through bitbucket pipelines. I will answer my own question below to share with others how I did this due to…
Ludo
  • 2,307
  • 2
  • 27
  • 58
1 2
3
89 90