You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've working on implement the Gitea PR integration with a Freestyle Project within Jenkins.
The idea is to be able to trigger the Jenkins job when it is created and approved and if this is the case in the Jenkins job, if the build fails, the PR auto merge should not be done, otherwise the auto merge should be done.
But during several tests, PRs events do not trigger the Jenkins job, it only triggers the Jenkins job when using Push events.
I am using the Gitea plugin.
The target URL looks something similar to this: http://[jenkins_URL]/gitea-webhook/post?job=mytest
Gitea Version
1.21.0+rc0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.31
Operating System
RedHat
How are you running Gitea?
What I have:
Gitea:
I have a git repo for testing purposes, with the configuration for the webhook. The connection between Gitea and Jenkins is working, but when I check the PR events they are not triggering the Jenkins job.
Jenkins:
I have a freestyle project with the configuration to build when Poll SCM.
I have a Execute shell to run specific scripts and I was testing out the Gitea API for the auto merge when the script passed.
Database
PostgreSQL
The text was updated successfully, but these errors were encountered:
I have simmilar situation here - if I choose custom events -> Pull Request only with branch filter, even test delivery event is not triggered at all. Webhook with custom events is working when I choose all pull request events AND also Create, Delete and Push events from repository (branch filter is set to *). Gitea version 1.22.3.
When configuring the webhook, I only selected the push event, but I found that Gitea sends a lot of redundant and unnecessary data, causing Jenkins to reject the request.
Specifically:
For a single push event, Gitea repeatedly sends event headers in three different formats
The payload contains too much unnecessary repository and user information
I've looked through Gitea's settings interface for a while but couldn't find any options to streamline this data. This causes problems when integrating with Jenkins.
Hope the team could consider adding a configuration option that allows users to choose to send only the necessary data. This would help avoid rejection by CI systems and improve the overall user experience.
Description
I've working on implement the Gitea PR integration with a Freestyle Project within Jenkins.
The idea is to be able to trigger the Jenkins job when it is created and approved and if this is the case in the Jenkins job, if the build fails, the PR auto merge should not be done, otherwise the auto merge should be done.
But during several tests, PRs events do not trigger the Jenkins job, it only triggers the Jenkins job when using Push events.
I am using the Gitea plugin.
The target URL looks something similar to this:
http://[jenkins_URL]/gitea-webhook/post?job=mytest
Gitea Version
1.21.0+rc0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.31
Operating System
RedHat
How are you running Gitea?
What I have:
Gitea:
Jenkins:
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: