开始新的詹金斯工作的灵活扩展。
poke-jenkins的Python项目详细描述
poke-jenkins是一个灵活的扩展,用于传入变更集的头启动jenkins作业。
安装
pip install poke-jenkins
配置
远程存储库的.hg/hgrc示例:
[extensions]poke_jenkins=[poke_jenkins]# Jenkins urljenkins_base_url=http://ci.example.com# List the jobs you want to startjobs=Project_Tests_Dev Project_Coverage_Dev# Feel free to change this parametertag=foo# The url which Jenkins will use to clone the repositoryrepo_url=ssh://code.example.com//example# Timeout in secondstimeout=10# Jenkins user idusername=foo# Jenkins API Tokenpassword=bar# Branch regular expression filterbranch_regex=^c\d{4}
用法
在上面给定的配置下,它将调用jenkins jobs来启动构建:
- http://ci.example.com/job/Project_Tests_Dev?tag=foo&node\u id=<;mercurial commit hash>;<;branch=<;branch name>;&;repo\u url=ssh://code.example.com//example
- http://ci.example.com/job/Project_Coverage_Dev?tag=foo&node\u id=<;mercurial commit hash>;<;branch=<;branch name>;&;repo\u url=ssh://code.example.com//example
如果设置了用户名和密码设置,它将添加基本的验证头来验证调用。
python3支持
包本身支持python3开箱即用,但不支持mercurial atm。
联系人
如果您有问题、错误报告、建议等,请在 这是GitHub project page。