简体   繁体   English

在Jenkins中将构建参数捕获为html报告

[英]Capture build parameters as html report in Jenkins

As part of release management process, there can exist parallel releases targeting to overlap on environments. 作为发布管理过程的一部分,可以存在并行发布,其目标是在环境上重叠。

Whats the best way to capture build parameters in Jenkins and add to a custom HTML report. 在Jenkins中捕获构建参数并将其添加到自定义HTML报告中的最佳方法是什么?

Like i want to see the following in the report ... 1. Build parameters used in build#XXX of build_job_releaseYYY 2. Sort the tabular report of build parameters to see how many releases have gone through Test1 environment etc 就像我想在报告中看到以下内容一样:1.在build_job_releaseYYY的build#XXX中使用的构建参数2.对构建参数的表格报告进行排序,以查看通过Test1环境等的版本数

The approach i was thinking ... 我在想的方法...

  1. Create an xml node for every set of build parameter .. 为每个构建参数集创建一个xml节点。

  2. Some how keep adding these nodes to an xml - buildReport.xml 一些如何继续将这些节点添加到xml-buildReport.xml

  3. Generate an html report BuildReport.xml from the buildReport.xml to display a table of the node 从buildReport.xml生成html报告BuildReport.xml以显示该节点的表

  4. The html report should be sortable. html报告应可排序。

There is the simple parameterized build report which may do what you want as it list the build parameters used in individual builds 有一个简单的参数化构建报告 ,它可能会执行您想要的操作,因为它列出了各个构建中使用的构建参数

在此处输入图片说明

This report is available of the job page as a link 该报告可在工作页面上作为链接获得

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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