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
6
votes
2 answers

YAML anchors in bitbucket pipelines

I am trying to write bitbucket pipeline and use YAML anchors to reduce repetition. So this is the example of what I would like to do: --- definitions: steps: - step: &build-test-alpine image: php:7.4-alpine caches: -…
Darko Miletic
  • 1,168
  • 1
  • 13
  • 21
6
votes
0 answers

Typescript cant find class CI only

I have an Angular project and when I run "ng test" locally everything works just fine, however in bitbucket pipelines I have this error. ERROR in src/app/services/user-store/user.service.ts:7:22 - error TS2307: Cannot find module…
6
votes
1 answer

How to pass the correct project path to bitbucket pipeline?

I want to deploy aws lamda .net core project using bit bucket pipeline I have created bitbucket-pipelines.yml like below but after build run getting error - MSBUILD : error MSB1003: Specify a project or solution file. The current working directory…
6
votes
2 answers

How to write conditional statements in bitbucket pipelines.yml file?

I am new to bitbucket pipelines and trying to deploy my code via bitbucket pipelines by using javaScript. My question is can we declare variables like (ex: var flag = false) and then write if/else statements based the flag value. Below is my…
6
votes
3 answers

error: Terminal is dumb, but EDITOR unset - BitBucket Pipeline

I'm using BitBucket Pipelines for the first time to SSH into a development server and perform a git pull origin branch whenever a push is made to the said branch. It's quite simple and everything is going as expected. Problem arises when a merge…
Qumber
  • 13,130
  • 4
  • 18
  • 33
6
votes
3 answers

How to resolve a maven dependency in a bitbucket pipeline that exists in another repo

I'm setting up a deployment pipeline for my companys mulesoft APIs using bitbucket-pipelines. This technology is attractive to us because of the built in integrations with Jira. The problem is that we are using a domain project. All of the other…
Shane Chambry
  • 61
  • 1
  • 3
6
votes
1 answer

Bitbucket pipelines: echo environment variable

I have a very simple pipeline for the tags. When I do the tag, I want to send simple slack webhook. My issue is that environment variable $BITBUCKET_TAG is not rendered neither in echo nor in slack message. pipelines: tags: '*': - step: …
walv
  • 2,680
  • 3
  • 31
  • 36
6
votes
1 answer

How to deploy only changed files via atlassian/ftp-deploy:0.2.0 in Bitbucket Pipelines?

I am new to BitBucket pipelines, as I used Webhook for deploying my changes to FTP. I have set reccommended atlassian/ftp-deploy:0.2.0 pipeline and it works fine, BUT I would like to set that ONLY CHANGED files are taken and sent to FTP. image:…
snorbik
  • 107
  • 1
  • 9
6
votes
1 answer

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found

[The relevant part of] my bitbucket-pipeline looks like this: - step: image: python:3.5.1 name: upload to s3 script: - export S3_BUCKET="elasticbeanstalk-us-east-1-122232355432" - export VERSION_LABEL=$(cat…
CodyBugstein
  • 21,984
  • 61
  • 207
  • 363
6
votes
2 answers

Can not checkout a git branch from a bitbucket pipeline yml script

I want to have rebase on top of staging (or merge with staging) before I deploy to my QA server so it will contain the latest changes + changes from my branch. As a first step I tried to checkout staging and failed: I have the following…
31415926
  • 3,811
  • 7
  • 47
  • 78
6
votes
1 answer

do bitbucket pipeline steps have to be sequential?

I have set up multiple steps with manual triggers in pipelines. It will only allow me to trigger the first step. Is this because I need to trigger all preceding steps to run a given step? Is there a way around this? To setup multiple manual steps I…
Ludo
  • 2,307
  • 2
  • 27
  • 58
6
votes
1 answer

How to use BitBucket Pipelines to update Google Cloud Compute Engine instance after a push?

I've seen documentations on how to accomplish this using the App Engine, but nothing on the Compute Engine. Thank you!
6
votes
3 answers

Run Angular 2 Protractor in Bitbucket Pipelines

I'm new to Bitbucket Pipelines, so I'm struggling a little bit trying to run my Protractor E2E tests of my Angular 2 application on the build. My bitbucket-pipelines.yml looks like this image:…
MarBVI
  • 811
  • 2
  • 12
  • 34
6
votes
4 answers

How to build a subfolder in Bitbucket Pipelines

I am struggling to configure the build in Bitbucket Pipelines. It's a C# solution and the code is located in a subfolder, rather than in the root folder of the repository. This is why when I build it, I get the error: + dotnet restore MSBUILD :…
user6269864
6
votes
1 answer

It is posible to get URL to current pipeline execution in Bitbucket Pipelines?

Every pipeline execution has their own URL (I think is a kind of UUID?). It's possible to get that URL or UUID to compose the URL? I have a command inside my tasks triggering messages using a REST/API call, but I want to include a link to the…
Gonzalo
  • 468
  • 1
  • 7
  • 17