Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Uploading with curl to external site doesn't work

joerndyherrn
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 2, 2018

The problem is on my pipeline.
In the pipeline I run:


curl -X POST https://SERVER_IP/ANO/ANO/curlreceive.php --form "file=@target/file.jar"

which is actually not working with bitbucket but working on my localhost console.
I need to find the mistake or error, as it's needed for uploading to a productive system.
It seems like the file is uploaded but post request is empty - as debug on pipeline shows.

Bildschirmfoto 2018-10-02 um 19.32.35.png

1 answer

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 4, 2018

Hi Jörn,

I'm not sure what the issue is at this stage. But here's a few things you can try.

Can you double check that file.jar is not empty before it's uploaded (i.e. inside of Pipelines)?

Have you tried reproducing this problem locally with Docker?

Can you also double check if you need to whitelist Bitbucket Pipelines IP's? https://confluence.atlassian.com/bitbucket/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall-343343385.html

Just to clarify, the file is being uploaded to your server. But it has no contents when it's on the server. Correct?

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events