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

Image not found: 404 Client Error: Not Found: aws-ecr-push-image atlassian pipeline

I'm using the Atlassian pipeline to build and push the docker image to AWS ECR but build is getting tear down with following message. INFO: Executing the aws-ecr-push-image pipe... INFO: Found credentials in environment variables. INFO:…
5
votes
1 answer

How can I skip default pipeline on pull request?

In the project I am currently working on, I want to run the bitbucket pipeline according to the following rules. Test and lint steps should run for each commit pushed to Branch. The test-with-coverage and lint steps must be run for each…
T. Ç
  • 75
  • 1
  • 7
5
votes
1 answer

How can I run a env variables on bitbucket pipeline?

I've learned about pipelines with bitbucket and I want to make a new one to upload my react application (bootstrapped with create-react-app) and uploaded to an Amazon S3 bucket. I made a bitbucket-pipelines.yml file like this one image:…
5
votes
1 answer

Viewing the cpanm error log in Bitbucket pipelines when installing a Perl module fails

I have a BitBucket Pipeline that installs a bunch of Perl modules using cpanm. One of them fails and this is the snippet I can see in the log: Fetching http://www.cpan.org/authors/id/P/PE/PETDANCE/ack-v3.0.2.tar.gz ... OK Configuring ack-v3.0.2 ...…
szabgab
  • 6,202
  • 11
  • 50
  • 64
5
votes
3 answers

How to pass crumb info via bitbucket-hook to jenkins?

curl -X POST http://xxx.yyy.zzz:5555/job/job-name/build --user john-devops-jenkins:11df3ed41129c5c7da1518e9c3149896de -H 'Jenkins-Crumb:31827a74a160347a641c87ddbc8e3b6e' The above curl code with a post request is absolutely working fine in…
Mithun Shreevatsa
  • 3,588
  • 9
  • 50
  • 95
5
votes
2 answers

How to add a wait time before executing a step in Bitbucket Pipeline

I have a Bitbucket pipeline where it creates AWS resources using cloudformation and deploys website to it. But deployment fails even the cloudformation creates the stack correctly. What I think the issue is when the deployment happens cloudformation…
5
votes
1 answer

Why is my bitbucket-pipelines.yml invalid for pull-request script

I have a bitbucket pipeline yaml file for a project Im working on. I had it running the pipeline fine when it was setup to run on push, but since I switched it to run on pull-request I get an invalid yml error. I found this description of how to…
ardev
  • 653
  • 2
  • 6
  • 19
5
votes
1 answer

Deploying each subdirectory of my git repository to a different target with CI/CD

I have a single git repository with multiple projects. The code of each project is found under a dedicated subdirectory. Each project has it's own deploy procedure. I would like that when I push a commit under the project's directory it would…
5
votes
4 answers

How to increase NodeJS heap (--max-old-space-size) in Bitbucket Pipelines for Typescript/Webpack?

I am running into memory issues during the webpack packaging step in a serverless/TypeScript project. I have tried: 'increase-memory-limit' npm package to no avail Calling the following command from an npm run script Calling the following command…
5
votes
1 answer

How to fix "Unable to import module" error in AWS lambda

I wrote a script to help me in automating the creation of new micro-services. It works by taking the URI of a bitbucket repository and AWS credentials. It clones the repository, adds a bitbucket-pipelines.yml file. Creates a new lambda function by…
5
votes
2 answers

How to cancel/not execute Bitbucket Pipelines builds based on a condition?

I want to update my yml file to ignore commits from certain users. Is this possible? Is there a similar solution? Ideally I wouldn't even want to trigger the build in the first place. Pseudo code example of yml file (ignore syntax, I'm just…
Alejandro Cotilla
  • 2,501
  • 1
  • 20
  • 35
5
votes
2 answers

Can't see .Net Core bitbucket pipelines test results

I finally managed to make reports of my tests in bitbucket pipeline by this command: - dotnet test MyTests --logger "trx;LogFileName=test-reports/results.xml" Build Teardown says: Found matching test report file…
5
votes
1 answer

Bitbucket pipeline ssh to compute engine instance with gcloud

I am using Bitbucket pipelines to run deploy script on preemptable machines on compute engine. I use google sdk and service account with Owner role, but still can't ssh to the machine. that is how my bitbucket-pipelines.yml looks like: - echo…
5
votes
2 answers

(Reactive)Mongo test failing with: unrecognised field 'snapshot'

My tests running in BitBucket pipeline 'suddenly' started to fail with this error: unrecognised field 'snapshot' (code = 9). Locally the test all run fine though. Both locally and in BitBucket I'm using a Mongo 3.7 docker container. Reactive Mongo…
Joost den Boer
  • 4,556
  • 4
  • 25
  • 39
5
votes
2 answers

Bitbucket Pipelines from Docker Image has Missing NPM Modules

Question What is wrong with my Dockerfile or bitbucket-pipelines.yml? Why are modules missing from the bitbucket pipelines environment? Error When I try to npm run build my Vue2 project with webpack using Bitbucket Pipelines, I get errors regarding…
Chadd
  • 636
  • 7
  • 30