Skip to main content

All Questions

0 votes
1 answer
94 views

Build Dpkg from bitbucket pipeline gives "dpkg-deb: error: control directory has bad permissions 777 (must be >=0755 and <=0775)"

I'm trying to build .deb package from the bitbucket pipeline but end up with this error msg. dpkg-deb: error: control directory has bad permissions 777 (must be >=0755 and <=0775) tried to ...
Priyamal's user avatar
  • 2,939
0 votes
1 answer
243 views

Dynamically Accessing Bitbucket Environment Variables in Pipelines

How can I dynamically pass multiple Role ARNs defined in my Bitbucket repository environment variable to a step variable in my pipeline? I have three Role ARNs defined in my Bitbucket repository ...
Ajit Kumar's user avatar
0 votes
1 answer
77 views

Syntax error in Bash script inlined in YAML anchor for Bitbucket Pipelines

This is a part of my Bitbucket pipeline: npm_audit: &npm_audit echo "Running npm audit..." npm_audit_output=$(npm audit --audit-level=critical) if [ $? -ne 0 ]; then ...
alex's user avatar
  • 11.3k
0 votes
1 answer
298 views

Yaml based multiline bash script not terminating

For a bitbucket pipeline I'm using the following after-script: after-script: - |- ssh -tt -p 222 [email protected] "/bin/bash" << EOF ...
pgalle's user avatar
  • 294
0 votes
0 answers
145 views

Cannot replace return carriage using bash running in bitbucket pipeline

I have an script that will read a csv then find a line and concatenate the result into a string. I have my script working fine when executing locally via git bash, but when executing same code on ...
vanessen's user avatar
  • 1,250
0 votes
2 answers
120 views

git show command not giving the correct output when using a docker image

I wrote a bash script to run a branch cleanup for a repository, which will consider the branches which are not used in 3 months and send an email to the branch owner. In the script I wrote there is a ...
CodeLover's user avatar
0 votes
1 answer
809 views

bash: -c: line 0: unexpected EOF while looking for matching ``'

I am trying to build a deployment pipeline (similar to GitHub actions) for a python Django project managed in Bitbucket. The pipeline consists of two steps (actions), Build a docker image and push it ...
Yas's user avatar
  • 68
0 votes
0 answers
33 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 ...
Théo Lavaux's user avatar
  • 1,434
0 votes
1 answer
4k views

Unable to find project root. Expecting to find one of host.json in project root

I am running a func as part of my bitbucket pipeline, when i run this command func azure functionapp publish "" --csharp locally from a terminal of my machine, the publish works fine, ...
floormind's user avatar
  • 1,966
1 vote
0 answers
145 views

Pipeline to fail if previous commit was rebased

I was able to run a pipeline to check if rebased was required or not when a commit is merged onto master, but once the commit is rebased and synced with master branch, it passes the pipeline. My ...
Karim Ali's user avatar
0 votes
1 answer
3k views

Can I overwrite BitBucket environment variables on specific conditions?

I am trying to overwrite my repository secrets for Prod with Test credentials based on specific attributes provided as input to BitBucket Pipeline, however running into an issue. if [[ “$parent_ou_id ...
Ranopriyo Neogy's user avatar
0 votes
1 answer
108 views

Execute pipeline if specific piece of config is changed

I want to execute bitbucket pipeline only if specific piece of config in yml file is changed. For example, we have this piece of config in config.yml someKey: value: string anotherKey: ...
vjancich's user avatar
0 votes
1 answer
3k views

Bitbucket Pipeline trying to get list of files changed compared to

I have the following bash script I use to perform linting checks in a bitbucket pipeline. #!/bin/bash set -e git fetch origin master:refs/remotes/origin/master FORK_POINT=$(git merge-base HEAD origin/...
Further Reading's user avatar
0 votes
1 answer
1k views

Export array environment variable bash/bitbucket pipelines

I have the following variable in bitbucket deployment settings: CALLBACKS="https://myapp.com" "http://localhost:3000" I need to export it to an environment variable of type array that will be read ...
Sammy's user avatar
  • 3,587
0 votes
1 answer
2k views

git diff branch_a branch_b return true or false

I am fairly new to bash scripting and I am trying to build a script to compare branches in 2 different repos in bitbucket. currently, I have this code: if [[ clone -eq 0 ]]; then cd ${1} ...
Amer's user avatar
  • 57

15 30 50 per page