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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events