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

Bitbucket pipelines variables in curl

I'm using bitbucket pipelines and in one step I want to call curl request to our API to save deployment data in DB. But when I try to call curl with BITBUCKET_BRANCH and BITBUCKET_REPO_SLUG variables they are always empty or not filled at…
7
votes
3 answers

php artisan migrate on Azure (in BitBucket pipeline)

I have setup a pipeline in BitBucket to automatically deploy my master branch of my project to an Azure Web App instance. The app deploys the files and runs composer update as expected (although it does warn that it's running as root), but php…
7
votes
3 answers

Bitbucket / I cannot see the artifacts in pipelines

I run e2e tests on CI environment, but I cannot see the artifacts in pipelines. bitbucket-pipelines.yml: image: cypress/base:10 options: max-time: 20 pipelines: default: -step: script: - npm install -npm…
enjoyit
  • 111
  • 2
  • 9
7
votes
1 answer

How Do I Cache APT Packages In Bitbucket Pipelines?

I am trying to build a project using gradle, jdk 8 and deploy it using ansible. I can't find an up to date docker image that contains all these so I am installing ansible on the fly. Bitbucket pipelines allegedly has the ability to create custom…
opticyclic
  • 7,412
  • 12
  • 81
  • 155
7
votes
1 answer

BitBucket pipeline is not using cache for npm install

I have a single BitBucket repository containing the code for an Angular app in a folder called ui and a Node API in a folder called api. My BitBucket pipeline runs ng test for the Angular app, but the node_modules folder isn't being cached…
infojolt
  • 5,244
  • 3
  • 40
  • 82
7
votes
1 answer

Bitbucket integration with AWS CodeDeploy Roles Trust Relationship Error

I am trying to deploy my sampleApplication code via AWS CodeDeploy for Bitbucket I have used this tutorial, I have followed all the steps. Trust Relationship for role is like this { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", …
Parth Mahida
  • 604
  • 1
  • 5
  • 19
7
votes
3 answers

Bitbucket Pipelines: No toolchains found in the NDK toolchains folder for ABI with prefix: aarch64-linux-android

I am totally new to CI with Bitbucket Pipelines and was currently setting up pipeline with the help of this article. My builds are failing due to this error "No toolchains found in the NDK toolchains folder for ABI with prefix:…
Omkar Amberkar
  • 1,952
  • 4
  • 16
  • 21
7
votes
3 answers

Push a folder from Bitbucket repo to public server using Pipelines

I have pipelines enabled in my Bitbucket repository and I need to run Angular 2 build and deploy the dist folder (which gets created after the build command is executed) in my server after every build. I have following in my bitbucket-pipelines.yml…
clint
  • 1,786
  • 4
  • 34
  • 60
7
votes
2 answers

Angular 2 cli run tests on bitbucket pipelines

I'm trying to run tests over bitbucket platform with the following configuration: image: node:6.8.0 pipelines: default: - step: script: - echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' >…
Serginho
  • 7,291
  • 2
  • 27
  • 52
7
votes
4 answers

Upload entire Bitbucket repo to S3 using Bitbucket Pipeline

I'm using Bitbuckets Pipeline. I want it to push the entire contents of my repo (very small) to S3. I don't want to have to zip it up, push to S3 and then unzip things. I just want it to take the existing file/folder structure in my Bitbucket…
Scott Decker
  • 4,229
  • 7
  • 24
  • 39
6
votes
2 answers

bitbucket pipelines variables in line

It is possible to declare variables inside the pipeline file, as in this GitHub example: # ... env: NODE_VERSION: 16.3.1 FOLDER_PATH: Project # ... steps: - name: Move to project folder run: cd $FOLDER_PATH # ... Is it…
Flavio Silva
  • 95
  • 1
  • 8
6
votes
2 answers

Bitbucket pipelines authorization denied by plugin pipelines

I am currently trying to build a bitbucket pipeline which is supposed to run a docker-compose file to test a microservice before deployment. The docker compose file is supposed to build my microservice image and run it. This all seems to work fine…
Terchila Marian
  • 2,225
  • 3
  • 25
  • 48
6
votes
3 answers

Linting error on BitBucket: TypeError: 'LinterStats' object is not subscriptable

I am using BitBucket pipelines to perform linting checks with pylint. It was working fine a few hours ago. I have been facing the following error even though the final score is well past the minimum criteria (8.0): Your code has been rated at…
Arjun A J
  • 396
  • 1
  • 9
  • 34
6
votes
0 answers

Spring-Boot docker build with paketo fails on Bitbucket pipelines

My spring-boot projekts builds its docker image on bitbucket.org using the spring-boot-maven-plugin with its build-image goal. On pipelines we always get the following maven error: Docker API call to 'localhost:2375/v1.24/containers/create' failed…
6
votes
3 answers

BitBucket Pipelines failing to build production Angular code (staging and local machine working)

I am using BitBucket Pipelines to try to auto-deploy staging and production compiled code. Staging works fine, production works fine on my local server but not on Pipelines. The log of failure is below and I have no clue why it would…
Kristjan O.
  • 814
  • 1
  • 9
  • 33