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
Finally, I got it working. Somehow the zip generated as build artifact is not named the same as it is in build.gradle
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.