The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Failing to upload pipeline build to Downloads folder

Sushant Pandey
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!
April 30, 2019

Hi,

I have been trying to get Pipeline (Gradle Java)to put build artifact into my repository's download folder, however its failing with following error:

 

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (26) couldn't open file "build/distributions/test.zip"

 

I found several articles, which indeed helped in correcting the api call i was trying to make so finally the one i have right now is this 

curl -X POST "https://${BB_AUTH_STRING}@api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"build/distributions/test.zip"

 

But unfortunately it continues to fail with error highlighted above. Of course, i replace ${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/ with my repo owner and repo slug. Even tested by keeping this as it is. Still no luck.

 

May be someone could help me see the mistake i'm doing here.

 

Thanks in advance.

Sush

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Sushant Pandey
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!
April 30, 2019

Finally, I got it working. Somehow the zip generated as build artifact is not named the same as it is in build.gradle

TAGS
AUG Leaders

Atlassian Community Events