Pushing artifacts into the Bitbucket repository
Part of the deployment process may be to take build artifacts and place them in the correct repository. The most convenient repository to store build artifacts may be Bitbucket itself. This is often discouraged because build artifacts typically consume a large amount of storage and may cause performance issues with the underlying git tool. Nevertheless, we offer this recipe if no alternatives exist.
Let’s learn how to push build artifacts back into a Bitbucket repository as part of deployment.
Getting ready
Although the recommended way to push back content to the git repository is using HTTP, there may be times when the only way to do this is by using SSH. To do that, you’ll need to set up your credentials. This is true if you have branch permissions enabled on your repository or want to set up an automated account for these actions. An important consideration is that configuring these accounts removes limits on...