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=@???
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
<span>HTTP/1.1 406 Not Acceptable</span>
It looks like you're new here. Sign in or register to get started.