Mercurial扩展,用于启动新的Jenkins任务。
项目描述
poke-jenkins 是一个Mercurial扩展,用于在 incoming changeset 的 heads 上启动 Jenkins 任务。
安装
pip install poke-jenkins
配置
您的远程仓库的 .hg/hgrc 的示例
[extensions]
poke_jenkins =
[poke_jenkins]
# Jenkins url
jenkins_base_url = http://ci.example.com
# List the jobs you want to start
jobs = Project_Tests_Dev Project_Coverage_Dev
# Feel free to change this parameter
tag = foo
# The url which Jenkins will use to clone the repository
repo_url = ssh://code.example.com//example
# Timeout in seconds
timeout = 10
# Jenkins user id
username = foo
# Jenkins API Token
password = bar
# Branch regular expression filter
branch_regex = ^c\d{4}
用法
根据上述配置,它将调用 Jenkins 任务以启动构建
http://ci.example.com/job/Project_Tests_Dev?TAG=foo&NODE_ID=<mercurial commit hash>&BRANCH=<branch name>&REPO_URL=ssh://code.example.com//example
http://ci.example.com/job/Project_Coverage_Dev?TAG=foo&NODE_ID=<mercurial commit hash>&BRANCH=<branch name>&REPO_URL=ssh://code.example.com//example
如果设置了用户名和密码设置,它将为调用添加基本认证头。
Python3支持
包本身支持Python3,但当前不支持Mercurial。
联系
如果您有任何问题、错误报告、建议等,请在 GitHub项目页面 上创建问题。
许可
本软件根据 MIT许可 许可。
查看 许可
© 2013 Paylogic International.