bash script gives error in combination with Bitbucket pipelines

I did set up a private repo on Bitbucket to host a PHP project. For this project I also use the pipelines integration.

This is the content of my pipelines yaml file:

image: php:7.1.4

- step:
- ./
- ./
- ./
- composer install
- vendor/bin/phpunit --coverage-clover=coverage.xml
- if [ $? -eq 0 ]; then bash <(curl -s; fi

I'm able to generate a code coverage file with Xdebug:

Generating code coverage report in Clover XML format ... done

The next part is uploading this file to but this part fails with an error

x> No CI provider detected.
Testing inside Docker?
Testing with Tox?
project root: .
/dev/fd/63: line 739: git: command not found
/dev/fd/63: line 739: hg: command not found
--> token set from env
Yaml not found, that's ok! Learn more at
==> Running gcov in . (disable via -X gcov)
==> Searching for coverage reports in:
+ .
-> Found 1 reports
==> Detecting git/mercurial file structure
==> Reading reports
+ ./coverage.xml bytes=81581
==> Appending adjustments
+ Found adjustments
==> Uploading reports
query: branch=&commit=&build=&build_url=&name=&tag=&slug=&yaml=&service=&flags=&pr=&job=
-> Pinging Codecov
HTTP 400
missing required properties: [&#39;commit&#39;]

1 answer

1 vote

It seems that your script throws errors due to missing git and hg executables, followed by a failed upload to As you can see the query sent has an empty "commit" argument, which is mandatory.

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,304 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot