So I'm working in a situation where we are conducting frequent performance tests using Jenkins and Gatling. When a particular jenkins job is done running, it produces a log with an attached Gatling report. What i would like to do is generate a confluence page in a predefined space that contains:
I have looked at several option but none seem to provide the specificity i'm looking for.
Hi Senai,
Thanks so much for your question.
It looks like you are trying to use an artefact from a Jenkins build (happens to be html) and push it to Confluence page.
You can choose to use Confluence REST API(bash/ruby/nodejs) and add a task to your Jenkins pipeline. Confluence supports REST endpoints for creating a new page and uploading new attachments to a page. Please follow this Rest API guide to upload the html created in previous task.
Pro-tip: Instead of basic auth, you can choose to use Personal Access token in your script to do so in Confluence 7.10 and above.
Thank you,
Ganesh Gautam
Confluence Data Center team
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.