- install phing plugin for jenkins
- new item->config->git(your gitlab or github repo)
- build->invoke phing targets->use build.xml target name to invoke
test: -> build now -> check console output
安装plug in:
http://localhost:48080/pluginManager/advanced
troubleshooting:
(https://blog.csdn.net/qq_16513911/article/details/89522132)
使用的sample app: https://github.com/xieheng0915/test-repo-for-jenkins
相关的build.xml 也在其中
设定:
设定phing
执行结果:
build结果
其他参考资料:
[关于phing 的用法]
(https://qiita.com/nyanchu/items/d881c34c3112a2ffcdf6)
[phing的官方文档:]
(https://www.phing.info/guide/chunkhtml/index.html)
Jenkins+phing
上文摘要:
- So a version like 2.3.12 means the product version number 2, 3rd sprint for that version, and build 12th since the beginning of the sprint.
- By default, Jenkins increments the build number for every new build. Starting at 1. So the next version is 2, then 3, and so on.
- phing plugin for jenkins
网友评论