简体   繁体   中英

Script to convert Xml report from jenkins to pdf

I'm new to Jenkins. I've use case that needs to be implemented,

After running the job, the build says Success/Failure and gives us an "XML" report.

We need to write script in Jenkins that XML report needs to convert it into PDF format.

Can you please guide me the steps. Your help would be greatly appreciated.

Thanks.

I don't think Jenkins has native support for file conversion so it sounds like you would have to write some shell scripts to convert the files and then have Jenkins invoke these scripts.

Are you intending to have the pdf look identical to the xml report? Or are you looking to strip away the tags and reformat?

I would look into using python's xml etree module for parsing the xml file and then use a tool like text2pdf to convert the txt to a pdf file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM