Jenkins进阶系列之——03parameterized-trigger插件
2016-03-19 20:09
561 查看
说明:这个插件可以根据已经完成构建的结果,触发新Job或者传递参数。
官方说明:Parameterized Trigger
Plugin
安装步骤:
系统管理→管理插件→可选插件→Build Triggers→Parameterized
Trigger Plugin
安装完成后到项目(job)配置页面:
构建后操作→Add post-build action→Trigger parameterized build on other projects
图1 插件配置示例界面
Add trigger :添加触发
Projects to build:需要构建的项目(job)名,如果有多个项目用 , 分隔。
Trigger when build is:构建触发的条件
Stable 成功(稳定)(等价于successful)
Unstable 不稳定
Stable or unstable but not failed 成功(稳定)或者不稳定,但是没有失败
Unstable or Failed but not stable 不稳定或者失败,但是没有成功(稳定)
Failed 失败
Complete (always trigger) 完成(总是触发)
Trigger build without parameters:构建的job不带参数(选择后下面的参数无效)
没有特别的需求,参数可以忽略。
Add Parameters:添加参数
Boolean parameters 布尔参数(键值对)
图2 Boolean parameters 界面
Build on the same node 在同一个节点上构建
(没有什么可以填写的,选择就可以了)
图3 Build on the same node界面
Current build parameters 当前构建参数
(没有什么可以填写的,选择就可以了)
图4 Current build parameters 界面
Parameters from properties file 从属性文件获取参数
相对于工作区的路径,用逗号分隔文件列表。文件类型:*.properties 。如果你不知道怎么写属性文件,建议你询问java开发人员。
图5 Parameters from properties file界面
Predefined parameters 预定义参数
和properties文件的语法相同 。如果你不知道怎么写属性文件,建议你询问java开发人员。
图6 Predefined parameters界面
Restrict matrix execution to a subset 限制矩阵执行的一个子集
指定Groovy的过滤器表达式限制将运行的下游项目组合子集。
图7 Restrict matrix execution to a subset 界面
Subversion revision svn版本
图8 Subversion revision 界面
转:/article/7006769.html 点击打开链接
官方说明:Parameterized Trigger
Plugin
安装步骤:
系统管理→管理插件→可选插件→Build Triggers→Parameterized
Trigger Plugin
安装完成后到项目(job)配置页面:
构建后操作→Add post-build action→Trigger parameterized build on other projects
图1 插件配置示例界面
Add trigger :添加触发
Projects to build:需要构建的项目(job)名,如果有多个项目用 , 分隔。
Trigger when build is:构建触发的条件
Stable 成功(稳定)(等价于successful)
Unstable 不稳定
Stable or unstable but not failed 成功(稳定)或者不稳定,但是没有失败
Unstable or Failed but not stable 不稳定或者失败,但是没有成功(稳定)
Failed 失败
Complete (always trigger) 完成(总是触发)
Trigger build without parameters:构建的job不带参数(选择后下面的参数无效)
没有特别的需求,参数可以忽略。
Add Parameters:添加参数
Boolean parameters 布尔参数(键值对)
图2 Boolean parameters 界面
Build on the same node 在同一个节点上构建
(没有什么可以填写的,选择就可以了)
图3 Build on the same node界面
Current build parameters 当前构建参数
(没有什么可以填写的,选择就可以了)
图4 Current build parameters 界面
Parameters from properties file 从属性文件获取参数
相对于工作区的路径,用逗号分隔文件列表。文件类型:*.properties 。如果你不知道怎么写属性文件,建议你询问java开发人员。
图5 Parameters from properties file界面
Predefined parameters 预定义参数
和properties文件的语法相同 。如果你不知道怎么写属性文件,建议你询问java开发人员。
图6 Predefined parameters界面
Restrict matrix execution to a subset 限制矩阵执行的一个子集
指定Groovy的过滤器表达式限制将运行的下游项目组合子集。
图7 Restrict matrix execution to a subset 界面
Subversion revision svn版本
图8 Subversion revision 界面
转:/article/7006769.html 点击打开链接
相关文章推荐
- Jenkins进阶系列之——04Publish Over FTP Plugin插件
- 学习进度(第三周)
- 六大排序算法C++实现
- Jenkins进阶系列之——02email-ext邮件通知模板
- WCF扩展之实现ZeroMQ绑定和protocolBuffer消息编码(三)实现ReplyChannel(2016-03-15 12:35)
- QtCreator-----设置快捷键
- ViewPager + Fragment实现滑动标签页
- Weather ( First Android demo )
- LeetCode103—Binary Tree Zigzag Level Order Traversal
- Jenkins进阶系列之——01使用email-ext替换Jenkins的默认邮件通知
- c++第2次上机-1
- 软件工程个人作业02
- 第六章整体管理、第七章范围管理--中项作业
- 从零开始创建一个简单的springMVC工程(包含一些异常的解决方法)
- 蓝桥杯 小朋友排队 (归并排序 逆序数 好题)
- 【leetcode】 39. Combination Sum
- 单例模式
- (4)ICE适配器带来的好处
- github客户端怎样上传代码 mac
- Jenkins入门系列之——02第二章 Jenkins安装与配置