Forums

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

Bitbucket pipelines artifacts publish

SmsParser September 11, 2019

I have artifacts like this:

artifacts:
- app/build/outputs/apk/debug/*.apk
- app1/build/outputs/apk/debug/*.apk
- app2/build/outputs/apk/debug/*.apk
- app3/build/outputs/apk/debug/*.apk
- app4/build/outputs/apk/debug/*.apk
- app5/build/outputs/apk/debug/*.apk

File names are different, not only add-debug.apk, it can be app-debug-[timestamp].apk, etc.

So what I need to write for publish all my artifacts to downloads?

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

 

1 answer

0 votes
SmsParser September 12, 2019

Try to do like this:

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

error

HTTP/1.1 406 Not Acceptable

:(

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events