
Overview
For every branch or tag that already exists in Bitbucket, Pages for Bitbucket offers a straightforward method for publishing web pages. View this branch’s HTML files or add tags directly in Bitbucket. You can also link to other HTML files or resources like CSS, JavaScript, or pictures using relative links.
With Javascript support and the ability to offer customized pages based on repository, Pages for Bitbucket enables you to host HTML pages directly on your Bitbucket server.
Features of this plugin are:
- Simple web hosting – Host simple websites directly in Bitbucket
- Commit and Publish – Edit and push, and your changes are live
- Version control – Automatic version control by Git
- Static web pages for every branch – Enable serving of static web pages per branch or tag
- Access control – Access control is based on repository permissions
- Relative links – Supports relative links and files stored in Git LFS
- Configurable navigation button – Select a branch you want to be accessible in the left navigation bar
Configuration
After installation of the plugin, the web pages plugin option can be changed from a separate configuration tab of the Repository Settings page

Security
For every branch or tag that already exists in it, Pages for Bitbucket offers a straightforward method for publishing web pages. View this branch’s HTML files or add tags directly in it. You can also link to other HTML files or resources like CSS, JavaScript, or pictures using relative links.
HTML can be hosted using Pages for Bitbucket, and access to web pages depends on repository permissions. For users to view web pages in Bitbucket, they must have at least read access to the repository. Pages are not by default available for branches or tags in personal repositories due to security concerns. However, you can specify which groups are permitted to enable pages in personal repositories in the plugin’s settings.
XSS Attacks
There’s an option added to disable JavaScript on rendered pages. Javascript can be disabled either on a global level or a repository level.
Security level
Select one of the following web page content protection levels
- Allow all insecure content: support both Javascript and CSS on the page, use only with private or fully trusted repositories!
- Allow CSS only: support CSS styling of pages, but wipe out Javascript code from pages
- Disable all insecure content: render text content only, wipe out CSS and Javascript code
Installation of The Plugin
- Log into your instance as an admin.
- Click the admin dropdown and choose Atlassian Marketplace. The Manage add-ons screen loads.
- Click Find new apps or Find new add-ons from the left-hand side of the page.
- Locate Sonar for Bitbucket Server via search. The appropriate app version appears in the search results.
- Click Try free to begin a new trial or Buy now to purchase a license for Pages for Bitbucket Server. You’re prompted to log into MyAtlassian.
- Enter your information and click Generate license when redirected to MyAtlassian.
- Click Apply license. If you’re using an older version of UPM, you can copy and paste the license into your Bitbucket instance.
Conclusion
With Pages for Bitbucket, it’s easy to publish web pages in Bitbucket for any branch or tag that already exists. View the HTML files for this branch or directly tag files in Bitbucket. You can link to additional HTML documents or resources, such as CSS, JavaScript, or images, using relative links.
Reference:-
- https://appfire.atlassian.net/wiki/spaces/PAGE/overview
- https://marketplace.atlassian.com/apps/1212525/pages-for-bitbucket-server?tab=overview&hosting=server