Skip to content

Add support for Job Hook #52

Description

@mutezero

Low priority for us, but it would be nice to have.

Currently this kind of events is rejected by Yappy with HTTP status 403 and response body: Invalid data. Plz use Gitlab webhooks.

X-Gitlab-Event is Job Hook

{
  "object_kind": "build",
  "ref": "develop",
  "tag": false,
  "before_sha": "0123456789012345678901234567890123456789",
  "sha": "0123456789012345678901234567890123456789",
  "build_id": 1,
  "build_name": "build-linux",
  "build_stage": "build",
  "build_status": "canceled",
  "build_started_at": null,
  "build_finished_at": "2018-07-11 09:12:45 UTC",
  "build_duration": null,
  "build_allow_failure": false,
  "build_failure_reason": "unknown_failure",
  "project_id": 1,
  "project_name": "My Test Team / My Test Project",
  "user": {
    "id": 1,
    "name": "UserName",
    "email": "username@example.host"
  },
  "commit": {
    "id": 1,
    "sha": "0123456789012345678901234567890123456789",
    "message": "Merge remote-tracking branch 'remotes/origin/master' into develop\n",
    "author_name": "UserName",
    "author_email": "username@example.host",
    "author_url": "https://git.xpenia.games/iamthezero",
    "status": "canceled",
    "duration": null,
    "started_at": null,
    "finished_at": "2018-07-11 09:12:46 UTC"
  },
  "repository": {
    "name": "My Test Project",
    "url": "git@gitlab.example.host:my-team/test-project.git",
    "description": "",
    "homepage": "https://gitlab.example.host/my-team/test-project",
    "git_http_url": "https://gitlab.example.host/my-team/test-project.git",
    "git_ssh_url": "git@gitlab.example.host:my-team/test-project.git",
    "visibility_level": 20
  }
}```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions