Labeller Blocks为每次编译标记
- Date Labeller
- Default Labeller
- Iteration Labeller
- Last Change Labeller
- Remote Project Labeller
- State File Labeller
1.Date Labeller
生成如下格式yyyy.mm.dd.build
<project> <labeller type="dateLabeller" /> <!-- Other project configuration to go here --> </project>
2.Default Labeller
<project> <labeller type="defaultlabeller"> <prefix>Foo-1-</prefix> <incrementOnFailure>true</incrementOnFailure> </labeller> <!-- Other project configuration to go here --> </project>
在指定的前缀后顺序加一,incrementOnFailure设为true指只有成功时才加一
3. Iteration Labeller
按迭代命名
<project> <labeller type="iterationlabeller"> <prefix>1.2</prefix> <duration>1</duration> <releaseStartDate>2005/6/24</releaseStartDate> <separator>_</separator> </labeller> <!-- Other project configuration to go here --> </project>
duration几周一次迭代,releaseStartDate迭代开始时间
4. Last Change Labeller
<project> <labeller type="lastChangeLabeller"> <prefix>Foo-1-</prefix> </labeller> <!-- Other project configuration to go here --> </project>
一些有changenumber源码管理器用的。
其余两个不常用,可以参考相关文档
至此,本系列完毕,谢谢阅读!