...
Include Page |
---|
Summary
|
...
This same approach applies to those that need to automate the rendering of pages that use the Cache Macro and are applying the techniques outlined in Page display performance tips and techniques to provide their users with a good user experience accessing pages that are performance intensive.
Requirements
- A Bamboo instance installed and running. Either you are already a Bamboo user or a starter instance can be installed in a few minutes for $10 license fee.
- Install the BCLIP
Solution
- Create a new build to run your automation
- Add a Confluence CLI task - search for cli in the task browser if necessary
- Configure the task similar to the example shown
- Schedule the build to run based on your specific requirements for the currency of the resulting page(s)
Tip | ||
---|---|---|
| ||
A CLI action requires server and login information to access the remote Confluence server. Use a global Bamboo variable to provide this information so that it can be available to multiple tasks and builds and be maintained easily. |
No Format | ||
---|---|---|
| ||
# Render the page and throw away the data (--file "")
--action run --common "-a renderRequest --space dev --file """" " ${bamboo.confluenceCli}
@DATA:
--title "Example - Project Summary" --requestParameters "profile=confluence-Cloud&run_1=run"
--title "some other page" |
...
title | Simplification for just running a single action |
---|
The example is constructed to easily expand to running multiple page updates from a single task. The action can be simplified to a single page rendering like so:
...
|