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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.