Deploying artifacts to Bitbucket Downloads
You can use Bitbucket itself as a staging area for build artifacts by configuring the Bitbucket Downloads pipe. This allows you to push build artifacts to Bitbucket Downloads. We’ll examine this process in more detail in this recipe.
Getting ready
Use of the bitbucket-upload-file
pipe requires authentication either by username and app password or by access token. We looked at creating app passwords in the Getting ready section of the Pushing artifacts into the Bitbucket repository recipe.
Access tokens are available at the repository level for all plans of Bitbucket, and they’re available at the project and workspace levels for the Premium plan of Bitbucket. The tokens are only scoped to the repository, project, or workspace for which they were created. These are for single-use functions and are revoked if replacement is needed. Let’s learn how to create a repository access token:
- At the repository level...