Noob question; I might be getting the terminology fuzzy.
When using Bitbucket Cloud to host a static website out of a repository (like <example.bitbucket.io>), is it possible to have the site show/include data generated by a pipeline/build?
One common use case might be to indicate whether the latest build has passing tests. Another (perhaps more heavyweight) possibility might be if a project compiles to HTML/CSS/JS from something else (e.g. Jekyll, Sass, TypeScript).
On one hand, this might impinge on the philosophical purity of a static website; on the other, it naively seems like a relatively straightforward combination of existing functionality.
Hey @sonatagreen , welcome to the Atlassian Community.
When using Bitbucket Cloud to host a static website out of a repository (like <example.bitbucket.io>), is it possible to have the site show/include data generated by a pipeline/build?
I'd say it certainly is, despite I've never tried it out myself. Really nice idea.
Keep in mind thought the website is publicly available, so the build information you'd like to put there should be public as well.
All you need to do for publishing is to pull from the site directory, update the main branch and push to it again. This should do it.
And as you can use pipelines as well with the Atlassian Bitbucket static-website repository, you can run Jekyll, Sass, Typescript or whatever your pipelines container is for.
To fetch JSON data of a pipeline run itself, the REST API has some offerings (e.g. pulling logs - if you want that info at all).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.