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

An error occurred (ClientException) when calling the DescribeTaskDefinition operation

I am facing issue while describing ecs task definition via running thorugh bitbucket pipeline. Issue i face is like below, An error occurred (ClientException) when calling the DescribeTaskDefinition operation command i use to execute via shell…
4
votes
1 answer

Configure bitbucket-pipeline.yml to use a DockerFile from repository to build image when running a pipeline

I am new on creating pipelines on bitbucket to automate building a specific branch after merge. The project is written in C++ and has the following structure: PROJECT FOLDER - .devcontainer/ - devcontainer.json - bin/ - doc/ …
laurapons
  • 971
  • 13
  • 32
4
votes
1 answer

Docker, go get from bitbucket private repo

We have project on bitbucket jb_common with address bitbucket.org/company/jb_common I'm trying to run a container that will requareq package from another private repo bitbucket.org/company/jb_utils Dockerfile: FROM golang # create a working…
4
votes
1 answer

Get the version from pom.xml from a Java Maven project in Bitbucket pipeline

Is there a way to get the version defined in the pom.xml file so it can be used with a variable in a Bitbucket pipeline? There are similar questions here on StackOverflow but they mostly refer to Jenkins and "readMavenPom" which doesn't seem to be…
Frank
  • 5,741
  • 4
  • 28
  • 49
4
votes
1 answer

Cache images in Bitbucket Pipelines

Bitbucket Pipelines pull the images every time that it start a pipeline. Since I start the tests on Bitbucket Pipelines at every pull requests, caching the images and avoid the long "Pulline images ..." would save me a lot of time. This is my…
Nifhel
  • 2,013
  • 2
  • 26
  • 39
4
votes
3 answers

Run SonarScanner analysis with Java 11, run target code with Java 8

As the following announcement points out, SonarSource ended support to run code Analyzers with pre-11 Java versions: January 2021 - Move analysis to Java 11 The version of Java installed in the scanner environment must be upgraded to at least Java…
chomp
  • 1,352
  • 13
  • 31
4
votes
1 answer

Same shell script produces different results when called from GitHub actions vs Bitbucket workflow

I've noticed that GitHub action does not fail as expected. The same shell script is used in bitbucket pipeline and it fails there as expected. The script is https://github.com/pavelfomin/gphoto-manager/blob/master/scripts/check-release.sh. It…
pavel
  • 2,964
  • 2
  • 14
  • 14
4
votes
1 answer

Is it possible to run app tests on Android emulator inside Bitbucket pipelines?

I have a Docker image that runs Appium server and Android Emulator. I am totally able to run a container based on that image in my computer (it requires the --privileged flag for that). I am also able to run automated tests in the emulator without…
4
votes
1 answer

How can I use docker-compose in a bitbucket pipeline to deploy to a remote host?

Currently I have a git project in bitbucket that has a web application which is dockerised. I have subsequently created a bitbucket-pipelines.yml file which outlines my entire deployment process. All of my CI works great, I can build, test and push…
Mous
  • 131
  • 8
4
votes
2 answers

composer cache not working on bitbucket pipeline build

I got this in my bitbucket pipeline: pipelines: branches: develop: - step: caches: - composer name: unit tests - Delivery image: totersapp/laravel-docker:phpredis script: - echo…
abbood
  • 23,101
  • 16
  • 132
  • 246
4
votes
1 answer

Bitbucket Pipelines to build Java app, Docker image and push it to AWS ECR?

I am setting up Bitbucket Pipelines for my Java app and what I want to achive is whenever I merge something with branch master, Bitbucket fires the pipeline, which in first step build and test my application, and in second step build Docker image…
4
votes
2 answers

How to fetch AWS CodeDeploy logs and show them in a BitBucket pipeline

I want to fetch CodeDeploy logs from my Amazon EC2 instance when a script fails during deployment and then show the logs in BitBucket pipelines. How can I do that? Is there any API available for fetching the logs from CodeDeploy?
4
votes
1 answer

How to run specific tests at each pull-request?

Let's assume that we have more than 1500 tests, and before of pull-request get merged to master branch we have a test pipeline that always runs the tests, and it takes more than 45min for all of the tests to get run. Some of these tests are not…
Mohammad.Kaab
  • 1,025
  • 7
  • 20
4
votes
1 answer

A valid option to satisfy the declaration could not be found in serverless framework

I'm using serverless framework and using bitbucket-pipeline to configure CI/CD. I have the following configuration in the serverless.yml file provider: name: aws runtime: nodejs10.x region: ${opt:region, ${env:AWS_REGION, 'ap-south-1'}} …
Anuj TBE
  • 9,198
  • 27
  • 136
  • 285
4
votes
2 answers

Bitbucket IP whitelisting in EC2 security group

I want to whitelist Bitbucket IP by adding it to the security group of EC2 instance. I have followed the steps on link : https://bitbucket.org/blog/new-ip-addresses-bitbucket-cloud I have added following IPs: IPv4: 18.205.93.0/25, 18.234.32.128/25,…
gbhati
  • 493
  • 1
  • 8
  • 20