Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Cannot publish reports to local proxy via BitBucket Pipelines

I've been referring to, but I'm having zero luck publishing report to proxy:


When I use "-u" with my user password, publishing works, however via pipeline it doesn't. This is my JSON:

"title": "Report",
"details": "This report shows results of behave tests",
"report_type": "TEST",
"reporter": "text",
"link": "'"${BITBUCKET_COMMIT}"'/index.html",
"result": "FAILED",
"data": [
"title": "Duration (seconds)",
"type": "DURATION",
"value": 14
"title": "Safe to merge?",
"type": "BOOLEAN",
"value": false


This is my query:

curl --proxy 'http://localhost:29418' --request PUT "${BITBUCKET_COMMIT}/reports/uiauto-${BITBUCKET_BUILD_NUMBER}" \
--header 'Content-Type: application/json' --data $DATA


And this is what I get back:

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (56) Received HTTP code 400 from proxy after CONNECT

4 answers

Hey guys!
I was fighting with the same error until I realized the solution.

In order to use `--proxy 'http://localhost:29418'` you need to use  HTTP (and NOT HTTPS) API endpoint ``

Examples in the documentation actually show that, but it is super easy to miss :)

Here you can find a working example:

Thanks so much ❤️ – indeed super easy to miss!

For anyone interested, I add Bitbucket Code Insights support to the reviewdog tool, which allows publishing results of different linters, etc as bitbucket reports.

See it here:

We're seeing the same, did either of you find a resolution to this?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

120 views 2 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you