jenkinsci / jenkinsci/gitlab-plugin

Web hook doesn't work

Open
#1,054 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.4k
Forks
615
Avg merge
4h 32m
Merged PRs (30d)
10

Description

## Issue
Triggering web hook from project in GitLab returns status 500.
### Context
- **Gitlab plugin version**: 1.5.13
- **Gitlab version**: 12.9.4 (Community Edition)
- **Jenkins version**: 2.233
- **Job type**: Freestyle

### Logs & Traces
JENKINS LOG:
Apr 27, 2020 1:06:36 PM INFO com.dabsquared.gitlabjenkins.webhook.GitLabWebHook getDynamic
WebHook called with url: /project/MyProject
Apr 27, 2020 1:06:36 PM WARNING hudson.init.impl.InstallUncaughtExceptionHandler handleException
Caught unhandled exception with ID 0828e0f1-d888-4254-a75d-310224887802
java.lang.Exception: Failed to read request body
at org.kohsuke.stapler.HttpResponses.error(HttpResponses.java:91)
at com.dabsquared.gitlabjenkins.webhook.ActionResolver.getRequestBody(ActionResolver.java:161)
at com.dabsquared.gitlabjenkins.webhook.ActionResolver.onPost(ActionResolver.java:114)

### Problem description

For a very long time everything worked as is should. Now when web hook is fired from GitLab and received by Jenkins job is not started. Jenkins log shows exception as in the "Logs & Traces" section. In the GitLab web hook log looks OK. Additional strange thing is that if I post the same POST request using Postman, then Jenkins starts the job without any exception.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.