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
17
votes
3 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,924
  • 2
  • 25
  • 39
16
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…
Gaston Pisacco
  • 213
  • 1
  • 3
  • 10
15
votes
1 answer

Change directory in pipe line bitbucket

My folder structure: -backend -frontend My reactapp is placed in frontend directory. image: node:10.15.3 pipelines: default: - step: caches: - node script: # Modify the commands below to build your repository. …
Joe
  • 4,274
  • 32
  • 95
  • 175
15
votes
4 answers

How to use git submodules with Bitbucket pipelines?

How to use git submodules with Bitbucket pipelines? I'm using Bitbucket pipelines to build my project and I'm having issues pulling in my submodule, I'm probably not configuring the SSH keys correctly. What I've done: Created SSH key pair in my…
Alejandro Cotilla
  • 2,501
  • 1
  • 20
  • 35
15
votes
3 answers

How to save artifacts in Bitbucket-Pipelines

I am new to bamboo. What I try to do is collecting all .dacpac files that are created during the build process. image: microsoft/dotnet:latest pipelines: default: - step: script: # Modify the commands below to build your repository. - cd…
Patrick Spiegel
  • 151
  • 1
  • 1
  • 4
14
votes
1 answer

Bitbucket pipeline use locally built image from previous step

If I'd like to build a docker image in one pipeline step, then use it in a following step - how would I do that? eg default: - step: name: Build image: script: - docker build -t imagename:local . -…
David Alsh
  • 6,747
  • 6
  • 34
  • 60
14
votes
9 answers

Terraform error refreshing state access denied

I'm using gitbucket for both my repository and for pipelines. I have a terraform config file with a remote state configured which runs fine on my local machine however it fails when running in gitbucket. I keep getting access denied error. Here's…
davidb
  • 1,503
  • 4
  • 30
  • 49
13
votes
2 answers

Do I have to npm install in every step in a bitbucket pipeline that I need to use an npm command

I have a bitbucket pipelines yml that I have step for running my test script and a step to run a serverless deploy script. Do I need to npm install at each step or will the first npm install carry through and suffice for each subsequent step. …
ardev
  • 653
  • 2
  • 6
  • 19
13
votes
1 answer

Bitbucket Pipeline fails saying that step is empty, null or missing

I'm trying to configure a Bitbucket pipeline to execute the SonarQube pipe, but Bitbucket complains that the pipeline step is empty, null or missing. I've got SONAR_TOKEN defined as a project variable with the correct token. Here's my current…
Juan Pablo
  • 593
  • 1
  • 6
  • 12
13
votes
2 answers

An error occurred (ThrottlingException) when calling the GetDeployment operation (reached max retries: 4): Rate exceeded

With an increase in the number of Deployment Groups in AWS CodeDeploy, BitBucket Pipelines are starting to fail more often. PIPELINE FAILED... + python ./_scripts/codedeploy_deploy.py Failed to deploy application revision. An error occurred…
13
votes
2 answers

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
  • 2,302
  • 3
  • 26
  • 51
12
votes
2 answers

Jest issue. FakeTimers: clearTimeout was invoked to clear a native timer instead of one created by this library

After the update of Node.js from version 14 to version 16, we've got a lot of failed tests on bitbucket CI/CD pipelines. Locally tests pass. Seems like the problem in timers, cause the first error message says: "FakeTimers: clearTimeout was invoked…
Alex Nepsha
  • 499
  • 5
  • 9
12
votes
2 answers

Bitbucket pipeline - possibility to merge one branch to another

I have a repository with two branches: master and Dev and I want to configure that pipline in such a way that when I push code to Dev branch and code build was successfull, the Dev was merged to master. Unfortunatly I can't find any information…
Adamo
  • 586
  • 1
  • 9
  • 28
11
votes
3 answers

Jest test stuck on bitbucket pipelines without any error

We use Bitbucket pipelines in our CI for testing, Our application is NestJS with Typescript tested with Jest. We always got all tests running, however few days from now (2022 may) the tests are stuck after some suit, the suite where the test stuck…
Daniel Santos
  • 14,328
  • 21
  • 91
  • 174
11
votes
8 answers

The deployment environment 'Staging' in your bitbucket-pipelines.yml file occurs multiple times in the pipeline

I'm trying to get Bitbucket Pipelines to work with multiple steps that define the deployment area. When I do, I get the error Configuration error The deployment environment 'Staging' in your bitbucket-pipelines.yml file occurs multiple times in the…
hdwebpros
  • 528
  • 3
  • 7
  • 20
1
2
3
89 90