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
0 answers

Properly reach Google Cloud SQL via proxy on Bitbucket Pipelines

Whats the proper way to proxy a Cloud SQL Database into Bitbucket Pipelines? I have a Google Cloud SQL Postgres Instance (And also tried a MySQL DB). Opening all ports to connections allows bitbucket pipelines to properly deploy my Django based…
5
votes
1 answer

Bitbucket Pipelines Read Quality Gate Results

We are trying to integrate Bitbucket Pipelines (Cloud) with SonarQube (6.4). In particular, we want that the Pipelines build fails if the SonarQube analysis detects some quality gate violations in our Java code. Currently, we are using Jenkins…
5
votes
1 answer

Create multiple pipelines for one repository on bitbucket?

To any branch I push my code is being deployed to FTP. image: samueldebruyn/debian-git pipelines: default: - step: script: - apt-get update - apt-get -qq install git-ftp - git ftp push --user…
Elyor
  • 5,396
  • 8
  • 48
  • 76
5
votes
1 answer

Bitbucket Pipelines access other node repository

I have enabled Bitbucket Pipelines in one of my node.js repositories to have it run the build on every commit. My repository depends on another node.js repository. For development I've linked the one to the other using npm link. I've tried a git…
amann
  • 5,449
  • 4
  • 38
  • 46
5
votes
1 answer

Bitbucket webhook trigger after pipeline completes successfully

I'd like to trigger a webhook after a pipeline completes successfully, I looked in the trigger list and didn't find any, is there a workaround to trigger webhook manually via pipeliens?
Chen Kinnrot
  • 20,609
  • 17
  • 79
  • 141
5
votes
2 answers

Increment a number in Bitbucket pipelines

I have a netcoreapp1.0 that I build using Bitbucket pipelines and pack with dotnet pack, and push to Octopus deploy as a package MyAssembly.Api.1.0.0-beta-*.nupkg where * is supposed to be a commit number/build number (or any other stable…
Marcus
  • 8,230
  • 11
  • 61
  • 88
5
votes
1 answer

Bitbucket Pipelines - mvn clean install not working with JavaFX

I am using Bitbucket Pipelines for building a project from our university. Here is my configuration from bitbucket-pipelines.yml: image: maven:3.3.9-jdk-8 pipelines: default: - step: script: # Modify the commands below to build your…
4
votes
1 answer

Best way to run bitbucket scheduled pipelines on weekdays

Bitbucket scheduled pipelines UI does not have an option for us to enter a cron expression and we can only run the pipeline hourly, daily or weekly. There is an option to create schedule via API call with cron expression in payload, however,…
4
votes
1 answer

Jest does not find tests even if testMatch has matches

Using Jest in bitbucket pipelines, it doesn't find the tests and hence failed with the following error : + npx jest No tests found, exiting with code 1 Run with `--passWithNoTests` to exit with code 0 In /opt/atlassian/pipelines/agent/build 12…
Wogle220
  • 83
  • 8
4
votes
1 answer

How to store a file as bitbucket pipeline variable?

I'm using bitbucket pipelines and I need to store the .env file (for example) as a variable so that I can use it in my deployment. When I stored it as a plain text variable it echoed as a single line text and the app couldn't use it.
Hesham Abboud
  • 45
  • 1
  • 1
  • 7
4
votes
0 answers

How do I share self hosted BitBucket Windows Pipeline runner across main and fork repositories

I have a main BitBucket repo say project.git. I have a self hosted Windows runner setup to monitor changes to this repo and kick off a build. It has been working great. I forked the repo to say joe.git. I want to test my changes in joe.git before…
4
votes
1 answer

Firebase Emulator on Bitbucket Pipeline

I'm trying to run Firebase Emulator on Bitbucket Pipeline. It fails because "java is not installed". How can I "install java" on a Bitbucket Pipeline. Or is there another way to get it to work? My step currently looks like this: - step:…
Phong6698
  • 389
  • 1
  • 3
  • 15
4
votes
4 answers

Bitbucket Pipelines: Build iOS for CI CD without external dependency

In Android, you can easily build an APK as long as you have Android SDK image. Then create a release (internal, beta, production) automatically on PlayStore. However Apple uses different licensing thus you will need a Mac and XCode in order to build…
Bitwise DEVS
  • 2,858
  • 4
  • 24
  • 67
4
votes
2 answers

Passing a variable to a Pipe that was set within the script

Pipes used within a Pipeline can accept parameters, the values can be environmental variables that are configured within Bitbucket (repo or deployment settings). But if a variable is set within the Script section, that variable is not available when…
Ivy
  • 3,393
  • 11
  • 33
  • 46
4
votes
0 answers

Getting a list of changed files in BitBucket Pipelines

I know that I can limit specific steps to "condition: changesets: includePaths:" That's not what I'm trying to do. I know that I can get a list of modified files in the last commit with git diff. That, unfortunately, isn't sufficient. What I would…
Tyler V.
  • 2,471
  • 21
  • 44