如何通过adnanh / webhook从gitlab在服务器中自动部署

时间:2018-07-30 12:35:58

标签: git gitlab webhooks

我有兴趣通过adnanh/webhook从GitLab部署在服务器中

我遵循配置

[
{
"id": "gitlab",
"execute-command": "echo",
"command-working-directory": "/home/developer",
"response-message": "success",
"include-command-output-in-response": true,
"pass-arguments-to-command": [
  {
    "source": "payload",
    "name": "commits.0.id"
  },
  {
    "source": "payload",
    "name": "user_name"
  },
  {
    "source": "payload",
    "name": "user_email"
  }
],
"trigger-rule": {
  "match": {
    "type": "value",
    "value": "refs/heads/master",
    "parameter": {
      "source": "payload",
      "name": "ref"
    }
  }
}
}
]

出现以下错误

  

不符合挂钩规则。

0 个答案:

没有答案