Groovy Postbuild 历史参数插件构建过程

Date Parameter Plugin 时间插件
Groovy Postbuild 历史参数插件

用法介绍:
Groovy Postbuild
1、添加构建后操作参数
Groovy Postbuild   历史参数插件构建过程
2、配置对应需要显示的参数,不需要勾选这个
if(manager.build.result.isBetterOrEqualTo(hudson.model.Result.UNSTABLE)) { manager.addShortText("日期:${manager.build.buildVariables.get('DATE')}") manager.addShortText("版本号:${manager.build.buildVariables.get('VERSION')}") manager.addShortText("发布应用:${manager.build.buildVariables.get('STAGING')}")}
Groovy Postbuild   历史参数插件构建过程

时间插件
1、 勾选
Groovy Postbuild   历史参数插件构建过程
2、配置参考
Groovy Postbuild   历史参数插件构建过程

猜你喜欢

转载自blog.51cto.com/yht1990/2327200