Questions tagged [bitbucket-pipelines]
Questions related to Bitbucket Pipelines CI/CD.
1,182
questions
0
votes
0
answers
9
views
BitBucket Jest tests get stuck
When pipeline gets to the tests (jest). It just stays there and spinner keeps spinning and nothing happens, no error messages. The test run in local with no errors.
After googling i noticed people ...
-1
votes
0
answers
20
views
How to configure Bitbucket pipeline cloud with Jenkins server?
I am new to Bitbucket pipeline and Jenkins pipeline. I will try to explain what I am trying to achieve here clearly -
I have BitBucket pipeline CLOUD and Jenkins hosted on a Server
Using Bitbucket ...
0
votes
1
answer
24
views
Setting deployment in bitbucket-pipeline.yml on a higher level than step
I want to set the deployment to use for a set of steps. All the documentation only shows setting deployment in a bitbucket-pipelines.yml step.
- step:
name: Deploy to test
image: ...
2
votes
0
answers
31
views
Bitbucket Pipeline Python Deployment failing all of a sudden
I have been trying to solve this for a few days and not sure what the issue could be, for my deployments we use bitbucket pipelines and have been able to deploy without any issue, and now today when I ...
0
votes
0
answers
13
views
Audit did not produce a value Cumulative Layout Shift in Lighthouse-CI
Audit did not produce a value Cumulative Layout Shift at all on all URLs on Bitbucket Pipeline. Received NaN
It does successfully execute the x runs on the other URLs, but it cannot produce a result. ...
0
votes
0
answers
23
views
Bitbucket Pipelines - Task 'appDistributionUploadStaging' not found in root project 'build'
I am trying to setup CI on Bitbucket Pipelines: what I want to do is assemble and upload the APK on Firebase AppDistribution (using com.google.firebase.appdistribution gradle plugin)
image: androidsdk/...
0
votes
1
answer
26
views
Is it possible to make a defined step conditional when using it in a Bitbucket pipeline?
I have a monorepo with a bitbucket pipeline.
I want to be able to run a default build whenever I push that only runs the steps for projects in the monorepo that have changed, using a step definition ...
-2
votes
1
answer
32
views
Getting Synax error: SyntaxError unexpected token in json at position 2 aws-lambda
Through Bitbucket, I'm passing an environmental variable object through the development tab that looks similarly to:
{ "var1": "tets.var.com", "port": "34", ...
0
votes
0
answers
22
views
how to get arc lint to print what it is doing internally
I have a project with arcanist setup along with phabricator for version control and code review management. There is a neat .arclint configuration setup currently using a mix of inbuilt linters (like ...
0
votes
0
answers
27
views
How can I prevent flaky tests when Cypress testing elements with "v-b-toggle" in a Bitbucket pipeline?
We have a Vue2-based frontend application which uses v-b-toggle to expand/collapse elements on when clicked. When running Cypress tests (either component or e2e tests) locally (CLI and UI), we have ...
1
vote
1
answer
48
views
jHipster 7.9 switches to testcontainers by default - how to revert back to old testing mechanism?
The jHipster 7.9 release uses testcontainers by default for running Java integration tests. This is causing problems with my existing bitbucket-pipeline.
Is there a way to switch back to the previous ...
0
votes
1
answer
35
views
Bitbucket flags pipeline as invalid, but passes online validation?
We use Bitbucket Cloud
I have the following bitbucket-pipelines.yml file. I removed the actual script steps to make it more concise.
image: node:9.8.0
definitions:
caches:
node-custom-staging: ...
0
votes
1
answer
34
views
How to change BitBucket pipeline name
I've just started creating my first pipelines on BitBucket, and I don't know how to change the pipeline's name, currently, it's always the last commit's name.
0
votes
1
answer
25
views
aws cli equivalent of pipe: atlassian/aws-ecs-deploy in bitbucket.yml
I have a bitbucket yml file that I need to covert to a shell script, How do I convert a atlassian/aws-ecs-deploy pipe to aws command line?
I have the following pipe
pipe: atlassian/aws-ecs-...
1
vote
1
answer
61
views
How to run Eslint only on changed files when a pull request is raised, in bitbucket pipelines?
We are building a bitbucket pipeline for a React Project. We have pre-commit hooks setup which does linting only on staged files.
How can I achieve the same in bitbucket pipelines, when a pull request ...
0
votes
0
answers
26
views
Deploying Multiple Microservices in different repositories to a single VM using bitbucket pipelines and docker-compose
I have a total of 8 Nodejs services in 8 different repositories on bitbucket. The services share some common code which is present in another repository called Brain. I want to create bitbucket ...
0
votes
0
answers
29
views
Shell script: bad substitution in Bitbucket Pipelines [duplicate]
I'm writing some CI commands inside Bitbucket Pipelines and I'd like to know why the following script isn't working. I tested it locally and it works, but in CI, I have a syntax error: bad ...
0
votes
0
answers
20
views
Gradle incremental build on bitbucket multi step pipeline
I cannot make the gradle incremental feature work on a bitbucket pipeline with multiple steps.
What I like to have is:
A step that compile the code
A step that test the code being compiled (without a ...
-1
votes
0
answers
11
views
How do you use JunitTestLogger - how do you add a project for testing , add test cases, and assert the results
How do you use JunitTestLogger - how do you add a project for testing , add test cases, and assert the results
This is necessary for Bitbucket-pipelines.yml to add bit bucket pipeline unit testing ...
0
votes
2
answers
39
views
Using latest Docker image in BitBucket pipe command
I have a Bitbucket pipeline that runs a pipe using a version number tag as follows:
script:
- mkdir meta
- pipe: myteam/bladepackager-pipeline:1.0.8
variables: ...
I would ...
-1
votes
0
answers
21
views
How to provide path of my main.tf file in bitbucket-pipeline.yml file so that it can find .tf file?
my bitbucket-pipeline.yml file is in main folder terraform/ while my main.tf file is in terraform/s3/s3-creation/ location and thats why my pipeline failing as it doesn't find .tf file. so how to ...
0
votes
1
answer
68
views
Problem with sha pointer ["error": "--from is not a valid sha pointer: \"origin/master\"",]
I want to deploy only changed files (according to documentation: https://github.com/scolladon/sfdx-git-delta)
I add to bitbucket-pipelines.yml:
- mkdir changed-sources
- git status
- git diff YMLEdit ...
0
votes
1
answer
105
views
Bitbucket Pipeline doesn't show the full output of Yarn build
I have a bitbucket pipeline with a yarn build command. The problem is that the output always misses the last lines:
+ yarn build
yarn run v1.22.19
$ react-scripts build
Creating an optimized ...
-1
votes
0
answers
20
views
Deploy 2 "webs" in 1 repository with 1 bitbucket pipeline
I have a repository that contains a server folder and a client folder. How do I config my bitbucket-pipelines.yml file?
I might want to start my server (npm start in ./server/) and then my client (npm ...
0
votes
0
answers
39
views
Selenium C# Error: System.InvalidOperationException : Could not start a new session
I have some tests that I execute against a standalone-chrome docker container through bitbucket pipelines. The tests were working fine for the last few months until this week wherein I see the below ...
0
votes
2
answers
52
views
How to get corresponding branch name after cloning git repo by specific tag?
I want the tag to be used only for the release branch in bitbucket pipeline. My idea is to find the branch name by tag or commit and then check it.
But this repository is obtained by tag in pipeline.
...
0
votes
1
answer
94
views
Zip deploy of Kafka Azure function is successful but Functions in Azure is empty
I have 3 azure functions:
IotHub trigger
Timer trigger
Kafka trigger
I upload them via CI/CD of the bitbucket pipeline
But after uploading I only have IotHub trigger and Timer trigger working
The ...
1
vote
0
answers
98
views
Bitbucket Pipeline fails at Step: NPM Install
Angular version 1.4
Bitbucket pipeline failed at NPM Install. here are the logs
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2
(node_modules/chokidar/node_modules/fsevents):
npm WARN ...
0
votes
1
answer
45
views
Multiple deployment pipes on bitbucket
I have a solution where reside a web application and an azure function.
So different pipes should be used for deployment:
microsoft/azure-web-apps-deploy:1.0.3 - for web app
microsoft/azure-functions-...
0
votes
2
answers
68
views
Set expiration or max-age limit for docker build --cache-from with BuildKit
TL;DR: If my CI docker build instruction is something like
DOCKER_BUILDKIT=1 docker build \
--cache-from registry.my.org/project-x/app:latest \
--tag registry.my.org/project-x/app:latest \
--tag ...
0
votes
0
answers
52
views
Maven UI Automation testing project with Appium and Bitbucket Pipelines
I’m trying to integrate my Maven UI Automation project (Appium) into the bitbucket pipelines. Is there any recommended docker to use instead of setting up my own docker? And is there any documentation ...
0
votes
0
answers
83
views
Bitbucket pipelines: problem cloning source repository on self-hosted runner with dind
I work on a project where we have specific computers (configured specs) which pair with our products (hardware). My aim is to configure a self hosted runner so that we can run our test suite on a real ...
0
votes
1
answer
67
views
npm install in bitbucket pipeline vs docker
My company is using bitbucket-pipeline alongside with docker to build an image of the application before deploying it.
When I'm reading into the docker file, I can see these lines:
(ignored a bunch of ...
1
vote
1
answer
53
views
Bitbucket pipelines configuration file error
I'm new to bitbucket pipelines and I'm following this tutorial to deploy a react app to heroku.
Deploy Reactjs app to Heroku with Multi-Environment Bitbucket CI/CD pipeline
However the file bitbucket-...
0
votes
1
answer
104
views
when tagging and pushing docker image to AWS ECR it creates an untagged version
I'm using bitbucket pipelines to build and psuh my docker image to Amazon ECR. I notice that it overrides the existing image in the repository which is what I want but somehow there is now an ...
0
votes
0
answers
101
views
Terraform bitbucket pipeline artifacts
I want to dpeloy terraform with bitbucket pipelines and everything works up to the apply stage.
On apply step I'm getting this error:
`
terraform apply -auto-approve output-${ENVIRONMENT}.plan
Error: ...
0
votes
1
answer
110
views
Resource not found - Triggering BitBucket Pipeline using curl
I created a new project and added a repository to it in my workspace. Further, I added a bitbucket-pipelines.yml to build a pipeline. I am able to trigger the pipeline manually however while trying to ...
0
votes
0
answers
42
views
Jest integration Tests break on Pipeline
Hello im trying to find to build a application on my pipeline using integrations tests with Jest version 27.5.1 as well as jest-cli 27.5.1 all the tests work on my localhost however when my code ...
0
votes
2
answers
63
views
Bitbucket Pipelines: Present a choice of deployment environment
I have been tasked with presenting the developer with a manually triggered pipeline that provides the developer the option of which integration environment to deploy to.
For instance, we have 3 ...
0
votes
0
answers
74
views
Unable to apply a tag to branch from Bitbucket pipeline
I have a self hosted runner running on Windows. I have a step in my pipeline to create a label and tag the current branch with that label.
I looked at long thread in this community that it should work....
4
votes
0
answers
55
views
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....
0
votes
0
answers
17
views
How to tell self hosted Windows pipeline runner to skip the cleanup routine of a build step
I am troubleshooting a git issue with self hosted runner on windows. I feel it is lot easier if the runner leaves behind cloned dir as it is instead of cleaning it up.
Wondering if there is any YML ...
0
votes
1
answer
87
views
AWS CDK and caching the cdk.out directory in build pipelies
I am using BitBucket pipelines to deploy an app to AWS using the Python CDK. As part of the process the cloud assembly cdk.out directory is created as documents in the AWS docs.
I am wondering if ...
0
votes
2
answers
171
views
Next.js build stuck compiling during docker build in bitbucket pipeline
I have converted a legacy react app from using Webpack 3 to use Next.js 12 and Webpack 5.
I am currently trying to deploy the project using Docker through bitbucket pipelines but when running next ...
0
votes
0
answers
53
views
Deploying a Blazor Azure Static Web App through a bitbucket pipeline
I'm currently developing a Blazor WebAssembly application that will be deployed on an Azure Static Web App through a BitBucket pipeline.
pipelines:
branches:
main:
- step:
name: ...
0
votes
1
answer
85
views
BITBUCKET_BUILD_NUMBER is evaluating to empty string in a Windows self hosted pipeline runner
Below is my YML file. When the pipeline is run on a fork's changes, the BITBUCKET_BUILD_NUMBER is coming as empty string.
Wondering what the trick is to get it right.
image: atlassian/default-image:3
...
0
votes
0
answers
83
views
php not found on bitbucket pipelines
I'm trying to set up my CI/CD with Bitbucket.
Right now my bitbucket-pipelines.yml looks like this:
# This is an example Starter pipeline configuration
# Use a skeleton to build, test and deploy using ...
0
votes
1
answer
87
views
How to use docker compose V2 in Bitbucket Pipelines
Traditionally, I had been issuing
pip install docker-compose
instructions in my pipelines scripts for steps needing it, usually for integration tests.
This was convenient because it operates ...
0
votes
1
answer
103
views
Run docker compose inside a bitbucket pipeline
I need to run docker-compose with --exit-code-from . My local docker-compose binary accepts this command line and works just fine.
+ docker-compose -f file1.yml -f file2.yml up zookeeper-secure kafka-...
1
vote
1
answer
115
views
How to run this command gcloud auth application-default login inside bitbucket pipelines?
As I am running my unit test through bitbucket pipelines, the below error occurs in some of the tests
Uncaught Error: Could not load the default credentials. Browse to https://cloud.google.com/docs/...