Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to parse a json/xml file in Pipelines.

Freddie Wright May 22, 2019

In our pipelines, we run a command (in the .yml file) which creates a json file and an xml file. Is it possible to parse one of these and display some of the data from it in the pipeline?

1 answer

0 votes
Steven Vaccarella
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 23, 2019

I'm not clear on exactly how or where you want to display the data. The easiest way would be to simply print the data to standard output so that you can see it in the logs. Another possibility is make it available as an artifact which you can then download from the pipeline result page: https://confluence.atlassian.com/bitbucket/using-artifacts-in-steps-935389074.html

Freddie Wright May 24, 2019

The xml/json structure is quite complex and contains a lot of data we don't really care about. I'd just like to parse this and display on screen some of it.

Freddie Wright May 24, 2019

It doesn't really matter where it's displayed as long as it's easily accessible.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, compass, developer experience, devex, platform engineering, internal developer platform, component catalog, atlassian learning, productivity tools, developer productivity, software architecture, compass webinar, engineering teams

Discover how Compass drives DevEx and productivity at Atlassian 🏃🏻‍♂️

Learn why Compass was built to tackle dev experience at scale. See how Atlassian uses it to boost visibility, reduce cognitive load, and drive consistency—plus tips to get started and customize your IDP for stronger team engagement.

Join the webinar ✨
AUG Leaders

Atlassian Community Events