readMavenPom, readProperties, readYaml - what about readXml in general?

39 views
Skip to first unread message

Torsten Reinhard

unread,
Jan 23, 2017, 5:29:20 AM1/23/17
to Jenkins Users
Hi,

the https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/ support several ways to read some common file types within the pipeline code:
readProperties, readMavenPom, readYaml

What is the recommended way to read *.xml files in general? Creating a @NonCPS method and using XmlSlurper#parseText might be a workaround,
but compared to the clean  approaches for some special cases that smells a little :-)

Any ideas or hints are welcome,

thanx, Torsten
Reply all
Reply to author
Forward
0 new messages