内部用 适配飞书Webhook
curl -H "Content-Type:application/json" -POST http://localhost:8080/jenkins/push -d '{ "buildStatus": "1", "jobName": "作业名", "buildUser": "构建人", "gitBranch": "git分支", "gitCommit": "提交HASH", "gitCommitUser": "提交人", "gitCommitMessage": "提交信息", "jobUrl": "http://something.com" }'
/gitlab/push curl -H "Content-Type:application/json" -POST http://localhost:8080/gitlab/push -d '{ "object_kind": "push", "event_name": "push", "before": "95790bf891e76fee5e1747ab589903a6a1f80f22", "after": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7", "ref": "refs/heads/master", "checkout_sha": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7", "message": "Hello World", "user_id": 4, "user_name": "John Smith", "user_email": "[email protected]", "user_avatar": "https://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=8://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=80", "project_id": 15, "project": { "id": 15, "name": "gitlab", "description": "", "web_url": "http://test.example.com/gitlab/gitlab", "avatar_url": "https://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=8://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=80", "git_ssh_url": "[email protected]:gitlab/gitlab.git", "git_http_url": "http://test.example.com/gitlab/gitlab.git", "namespace": "gitlab", "visibility_level": 0, "path_with_namespace": "gitlab/gitlab", "default_branch": "master" }, "commits": [ { "id": "c5feabde2d8cd023215af4d2ceeb7a64839fc428", "message": "Add simple search to projects in public area\n\ncommit message body", "title": "Add simple search to projects in public area", "timestamp": "2013-05-13T18:18:08+00:00", "url": "https://test.example.com/gitlab/gitlab/-/commit/c5feabde2d8cd023215af4d2ceeb7a64839fc428", "author": { "name": "Test User", "email": "[email protected]" } }, { "id": "c5feabde2d8cd023215af4d2ceeb7a64839fc428", "message": "Add simple search to projects in public area\n\ncommit message body", "title": "Add simple search to projects in public area", "timestamp": "2013-05-13T18:18:08+00:00", "url": "https://test.example.com/gitlab/gitlab/-/commit/c5feabde2d8cd023215af4d2ceeb7a64839fc428", "author": { "name": "Test User", "email": "[email protected]" } } ], "total_commits_count": 1, "push_options": { "ci": { "skip": true } } }'