I would like to have a link to the latest binary that was built using Bitbucket Pipelines, so I could post this link in a Confluence article, so that teammates can always download the latest build artifact.
Even better if I could provide on Confluence a list of links to builds of different branches/tags.
I can not just forward them somehow to Downloads section of Bitbucket, since they must not have access to Bitbucket, only to Confluence.
How can I achieve that?
Alright, I figured it out.
Hi Ivan,
Bitbucket Pipelines artifacts can only be accessed by users with access to the repo where the build is running. If users don't have access to the repo, they cannot download artifacts.
If Confluence REST API provides an endpoint for uploading a file in a Confluence page, you could include in your Pipelines build an API call that will upload the binary you want to a Confluence page. Are you using a Confluence Cloud instance or a Server one (self-hosted)?
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Theodora, thank you for your response. I am using Confluence Cloud. How do I post the artifact to Confluence page? I couldn't find any information on this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for REST API hint, I posted an answer below
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ivan Belyakov ,
I am really sorry for not replying earlier, I somehow missed the notification of your reply from 23rd February.
I had asked whether you use Confluence Server or Cloud so I can check for the appropriate API endpoint, but it looks that you have found it already.
Thank you for posting it in your reply, and please feel free to let me know if you need anything further.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.