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