Business Requirement
You want to pull the attachment from Bitbucket Server PR and push the same attachment to Cloud Bitbucket PR.
EX: Any PR with attachment
https://bitbucket.chromacode.com/projects/CCC/repos/analysis_web/pull-requests/1101/overview
Solution
Useful links
Sl No | Item | Description |
---|---|---|
1 | CodeBase Reference | https://bitbucket.miwalker.net/projects/BBCS/repos/replicate_pr_attachments/browse/readme.md |
2 |
Important Note:
Your server username
server_username = ykundasi
Your server password
server_password = 'Empyra@2019'
The base URL for your server instance without a trailing slash. Examples: http://localhost:7990 or https://mydomain.com
server_url = https://bitbucket.chromacode.com
Your cloud username
cloud_username = ykundasi@empyra.com
You cloud app password https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/
cloud_password = 'Tintin@3814'
Your cloud workspace ID/slug https://support.atlassian.com/bitbucket-cloud/docs/change-a-workspace-id/
cloud_workspace = https://bitbucket.org/chromacode