-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing headers in status webhook #33244
Comments
sequenceDiagram
User->>Gitea: commit
Gitea->>Jenkins: push-webhook
Jenkins->>Gitea: status update: building
Gitea->>Jenkins: status-webhook
Note right of Jenkins: Here the error occurs because of the missing header
Based on that you will need something like this to trigger the
For me this command creates the (in my view) malformed webhook: |
Fix go-gitea#32873 Fix go-gitea#33201 ~Fix go-gitea#33244~ ~Fix go-gitea#33302~ depends on ~go-gitea#33396~ A part of this PR should be backported to v1.23 manually.
Description
I am using Gitea in combination with Jenkins and the Gitea Plugin for Jenkins.
Using a webhook for all events in the gitea organization and and organization folder on the Jenkins side.
The new status webhook (#27151) introduced in 1.23.0 has the
X-GitHub-Event
,X-Gitea-Event
andX-Gogs-Event
headers missing/empty:In comparison a webhook for a push event:
Because of this the Jenkins plugin returns an error code with the log message:
I think this should be ultimately be made more robust in the plugin but is probably a bug here as well.
Gitea Version
1.23.1
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.47.1
Operating System
Debian 12
How are you running Gitea?
using
gitea/gitea:latest
docker imageDatabase
MySQL/MariaDB
The text was updated successfully, but these errors were encountered: