Skip to content

Webhooks: PRs events are not triggering Jenkins job #30252

Open
@CristopherA96

Description

@CristopherA96

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:

  • 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

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