It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

What's the best way to embed URL content from Jenkins API in Confluence?

We wish to include some information from our Jenkins build pages, probably via the XML API, in Confluence pages.

We thought that using the HTML Include plugin would work, but instead get the error:

HTML inclusion denied because the page at*/passCount/text() is not an HTML page.

Which makes sense as it is just a text response, in this case a number indicating the number of tests that have passed for our build.

However, I can't see any other way to retrieve the contents of a URL and embed them within the page. I tried using an iframe, using the HTML plugin, and this works, but seems to default to being a very large box, which is no good as we want to include many values from Jenkins in a table.

I'm sure I must be missing something and there is a better way to do this...please help point us in the right direction :)

1 answer

The xslt macro of confluence claims to do this. So instead of applying the xpath on the Jenkins URL, you could try directly getting the xml and then applying the style sheet.


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

4,118 views 4 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you