added flags to specify the hooks json file path, ip and port the webhook should serve on

This commit is contained in:
Adnan Hajdarevic 2015-01-13 00:59:18 +01:00
parent ffabc5541e
commit c70c21fda7
4 changed files with 19 additions and 9 deletions

40
hooks.json.example Normal file
View file

@ -0,0 +1,40 @@
[
{
"id": "draos",
"command": "dir",
"secret": "",
"trigger-rule": {
"and": [
{
"match": {
"parameter": "commits.100.id",
"value": "20c16a7055dae65c69b9ca3f2e8cd1ac8fe9bbf2"
}
},
{
"match": {
"parameter": "ref",
"value": "refs/heads/master"
}
},
{
"match": {
"parameter": "repository.id",
"value": "17341098"
}
}
]
}
},
{
"id": "something",
"command": "",
"cwd": ".",
"trigger-rule": {
"match": {
"parameter": "second",
"value": "2"
}
}
}
]