jenkins build history自定义

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jenkins build history自定义相关的知识,希望对你有一定的参考价值。

参考技术A 我们要自定义的是这块内容

准备工作:

Manage Jenkins -> Configure Global Security,将Markup Formatter的设置更改为Safe html

因为你安全配置里已打开了html模式,所以这里你配置img是可以的哦

jenkins post build tasks插件中log text参数的使用说明

log text是post build tasks的执行条件

使用1:直接使用自带的日志字段

 

技术图片

 

 

2、自定义字段

自定义参数-----根据自定义参数echo一些输出-----在log text里面匹配输出

技术图片

 

 技术图片

 

 技术图片

 

以上是关于jenkins build history自定义的主要内容,如果未能解决你的问题,请参考以下文章

jenkins 自定义插件 java 代码从从机读取文件

jenkins post build tasks插件中log text参数的使用说明

Jenkins参数化构建插件,实现构建前输入自定义参数

docker+jenkins的构建历史记录(Build History)时间不正确

history.phtml 上 Magento 中的自定义状态

事件监听和window.history以及自定义创建事件