1,448 questions
0
votes
0
answers
88
views
Exit bitbucket pipeline step early if output condition is met
How can I exit the bitbucket pipeline step (as successful) early if a specific output is matched, and output a custom message. Otherwise just continue the normal output.
pipelines:
custom:
- ...
1
vote
2
answers
109
views
How to make zip file from git for each folder [closed]
I have this pipeline which will generate zip file only with diff files and send it to my FTP store.
pipelines:
branches:
master:
- step:
name: Update package
image: ...
0
votes
0
answers
42
views
Artifacts not found while deploying to aws - Bitbucket Pipeline
I'm trying to deploy an application in AWS using parallel for handling 2 application in one service, if I'm using in custom pipeline, it's working fine, but when I tried with branches like dev/sit, I ...
0
votes
1
answer
57
views
Bitbucket pipeline Permission denied (publickey). Digital ocean Ubuntu 22.04
I am migrating on a new Ubuntu Digital ocean droplet. I had one bought a few years ago, but since it is old it is using Ubuntu 18.04.
Due to compatibility issues I decided to buy a new droplet which ...
0
votes
1
answer
183
views
BitBucket pipeline trigger based on branch [duplicate]
It is not quite clear to me what the structure of the YAML file is for different branches. I need the possibility to run different validation jobs per branch. If I create a PullRequest against stage, ...
0
votes
1
answer
39
views
Bitbucket +dockerhub + aws dployment - how to avoid artifacts expiration?
I have java + gradle project with build\deploy condfig in bitbucket-pipelines.yml file.
There are steps configured accordingly:
one to build application and build/tag/push images
- step:
...
0
votes
0
answers
90
views
Bitbucket pipeline intermittent failure: Exceeded build time limit
We have a Bitbucket pipeline that runs frequently to do some Cypress tests and normally completes in 2 minutes. However, sometimes it appears to just hang and hit the build timeout (max-time currently ...
1
vote
0
answers
56
views
BitBucket pipelines with Dockerfile ADD instruction fails on tar files
I like to check if there is known limitation/workaround in using Dockerfile ADD instruction in BitBucket pipelines. I am getting error as Host ID 1000 cannot be mapped to a container ID when ...
1
vote
0
answers
50
views
Bitbucket downloaded file is always corrupted
Ok so I've been trying to create a library to use in multiple projects and I'm having a hard time with the limited tools at my disposal. All the projects are being hosted in Bitbucket, including the ...
1
vote
1
answer
105
views
How to make wait command work in bitbucket pipeline
There is a test pipeline with one step with the following script
script:
- bash pipeline_scripts/config_databases.sh
- bash run_test1.sh &
- bash run_test2.sh &
- wait
...
4
votes
1
answer
331
views
How to Share a Centralized bitbucket-pipelines.yml (File) Across Multiple Repositories in Bitbucket?
I have multiple repositories in Bitbucket that need to use the same bitbucket-pipelines.yml (which contain the import of an exported bitbucket-pipelines.yml file). Instead of manually updating this ...
-2
votes
1
answer
221
views
How to run Maven 3 + Java 21 in Bitbucket pipline?
The Bitbucket YAML file we are given has this:
image: maven:3-openjdk-17
But we need Maven with Java 21.
How do we go about finding this? maven:3-openjdk-21 doesn't work.
We are currently using ...
0
votes
0
answers
58
views
How to prevent a Bitbucket build from running on every change in the Bitbucket
I have a repository on bitbucket which initiates a build to run on every change I make to the bitbucket UI like adding reviews, changing description etc. I want the build pipeline to only run when I ...
1
vote
1
answer
67
views
Using CNCF Buildpacks on Bitbucket Pipelines
I'm experimenting with CNCF Buildpacks' pack tool to generate container images in BitBucket pipelines but I'm getting the following error:
ERROR: failed to build: failed to create 'creator' container: ...
1
vote
0
answers
69
views
Bitbucket pipeline Workspace Runner Xcode can't detect the certificate installed on the server
I am trying to archive an iOS project using Bitbucket Pipeline using a self hosted runner.
I was able to build the ipa using a Repository Runner and used my local machine as a self hosted runner.
On ...