产品工作流中构建触发器偶尔不生效, 如何排查
request 内容也发下,有敏感信息可以码下,主要是请求路径
{
“object_kind”: “push”,
“event_name”: “push”,
“before”: “0000000000000000000000000000000000000000”,
“after”: “b9d65603a8cd040ed3d927e50edcace7346f3758”,
“ref”: “refs/heads/hotfix/Hotfix-20230802”,
“ref_protected”: false,
“checkout_sha”: “b9d65603a8cd040ed3d927e50edcace7346f3758”,
“message”: null,
“user_id”: 291,
“user_name”: “甘冰",
“user_username”: "ganbing”,
“user_email”: “”,
“user_avatar”: “https://git.xxxx.com/uploads/-/system/user/avatar/291/avatar.png”,
“project_id”: 138,
“project”: {
“id”: 138,
“name”: “all-in-one”,
“description”: “”,
“web_url”: “https://git.xxxx.com/whispered/all-in-one”,
“avatar_url”: null,
“git_ssh_url”: “git@git.xxxx.com:whispered/all-in-one.git”,
“git_http_url”: “https://git.xxxx.com/whispered/all-in-one.git”,
“namespace”: “whispered”,
“visibility_level”: 0,
“path_with_namespace”: “whispered/all-in-one”,
“default_branch”: “master”,
“ci_config_path”: “”,
“homepage”: “https://git.xxxx.com/whispered/all-in-one”,
“url”: “git@git.xxxx.com:whispered/all-in-one.git”,
“ssh_url”: “git@git.xxxx.com:whispered/all-in-one.git”,
“http_url”: “https://git.xxxx.com/whispered/all-in-one.git”
},
“commits”: [
{
“id”: “b9d65603a8cd040ed3d927e50edcace7346f3758”,
“message”: “查询接口兼容\n”,
“title”: “查询接口兼容”,
“timestamp”: “2023-08-02T09:44:55+08:00”,
“url”: “https://git.xxx.com/whispered/all-in-one/-/commit/b9d65603a8cd040ed3d927e50edcace7346f3758”,
“author”: {
“name”: “甘*冰”,
“email”: “[REDACTED]”
},
“added”: [
],
"modified": [
"backend"
],
"removed": [
]
}
],
“total_commits_count”: 1,
“push_options”: {
},
“repository”: {
“name”: “all-in-one”,
“url”: “git@git.xxxxx.com:whispered/all-in-one.git”,
“description”: “”,
“homepage”: “https://git.xxxxx.com/whispered/all-in-one”,
“git_http_url”: “https://git.xxxxx.com/whispered/all-in-one.git”,
“git_ssh_url”: “git@git.xxxx.com:whispered/all-in-one.git”,
“visibility_level”: 0
}
}
Headers
Content-Type: application/json
User-Agent: GitLab/16.2.1
X-Gitlab-Event: Push Hook
X-Gitlab-Webhook-UUID: b4f1ea9c-fc6f-421e-9f92-9a8ce64a6d7f
X-Gitlab-Instance: https://git.xxxx.com
X-Gitlab-Token: [REDACTED]
X-Gitlab-Event-UUID: b851ea73-7f4d-451a-a030-3d6008caca6b
失败的情况是不是都是push了新的分支?
问题基本定位到了,会在下个版本修复
是的, 您这么一说, 我发现之前几次应该都是新分支