I've been searching for a way to upload the pipeline artifacts to SharePoint using the SharePoint API. However, I could not find anything about how to do that from bitbucket side. The artifacts are already being deployed and can be found in the download section. In the Atlassian support it says " there is a way to send your artifacts to 3rd-party storage and create a link in your commit view, using the Bitbucket build status API." But the link they have provided does not provide a clear approach.
How can I use these artifacts and upload that to the SharePoint or any 3rd party storage?
Hi @yashoda.chandrasekara and welcome to the community.
Have you tried using a Sharepoint API call during the Pipelines build?
You can edit the bitbucket-pipelines.yml file and either create a new step that executes this API call or add the API call in one of the steps where these artifacts are available.
If you need to authenticate in order to execute the API call, you can define variables for any passwords/tokens (and make them "Secured" so they won't be visible in the Pipelines log) and use them in the API call.
Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events