Skip to content
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

Jenkins webhook latency for Gitlab branch source plugin #426

Open
devensa opened this issue May 7, 2024 · 5 comments
Open

Jenkins webhook latency for Gitlab branch source plugin #426

devensa opened this issue May 7, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@devensa
Copy link

devensa commented May 7, 2024

Jenkins and plugins versions report

Environment
Paste the output here

What Operating System are you using (both controller, and any agents involved in the problem)?

rhel8

Reproduction steps

Step1: Host Jenkins 2.426.3 on tomcat apache 9.0.70
Step2: Install gitlab branch source plugin
Step3: Add gitlab server config entry on Jenkins system configure side
Step4: Create job-> New item -> Organization folder -> gitlab group type job
Step5: Do a regular code commit on gitlab side and check if webhook will trigger the job continuously.

Expected Results

Whenever we do code commit on gitlab side, it should trigger the respective gitlab group type job on Jenkins side.

Actual Results

We have webhook latency and not working most of the time between Jenkins and gitlab for gitlab group and multibranch pipeline jobs. we have to recycle service to fix it but it should be fine for next few hours or day only, again the issue will happen.
Please help us and getting fix on this. we are using the below jenkins, tomcat and plugins for webhook.

Jenkins version 2.426.3 (open source)
apache tomcat version - 9.0.70
GitLab Version - 1.8.0
GitLab Branch Source Version- 694.v1b_045877a_b_92
GitLab API Version - 5.3.0-91.v1f9a_fda_d654f
Generic Webhook Trigger Version - 2.0.0

This is my observation, whenever i see these threads, webhook are not working.

class io.jenkins.plugins.gitlabbranchsource.GitLabMergeRequestSCMEvent Fri May 26 09:10:31 EDT 2023 / SCMEvent 6
yes 5 RUNNABLERUNNABLE [email protected]/java.net.SocketInputStream.socketRead0(Native Method) 218,604 205,000 Send a thread interrupt signal to class io.jenkins.plugins.gitlabbranchsource.GitLabMergeRequestSCMEvent Fri

Anything else?

Jenkins version 2.426.3 (open source)
apache tomcat version - 9.0.70
GitLab Version - 1.8.0
GitLab Branch Source Version- 694.v1b_045877a_b_92
GitLab API Version - 5.3.0-91.v1f9a_fda_d654f
Generic Webhook Trigger Version - 2.0.0

Are you interested in contributing a fix?

yes interested to contribute

@devensa devensa added the bug Something isn't working label May 7, 2024
@Turiok
Copy link
Contributor

Turiok commented May 16, 2024

Hi @devensa ,

Can you enable debug for the plugin in Jenkins?
Send the log of the webhook from Gitlab (You can see this in the configuration of this specific webhook to found the request and response).
And send the log of the plugin from Jenkins ?

@Turiok
Copy link
Contributor

Turiok commented May 16, 2024

@devensa Are you sure about your Gitlab version? The minimum requirement is Gitlab 11, not 1.8.0

@devensa
Copy link
Author

devensa commented May 21, 2024

Hi @Turiok, Thanks for your response. I will enable the verbose log and attach the jenkins and gitlab logs.
we are using gitlab Jenkins plugin https://plugins.jenkins.io/gitlab-plugin/ v1.8.1. we are using Gitlab which version is 15.11.

@Turiok
Copy link
Contributor

Turiok commented May 22, 2024

Hi @devensa ,

this is not the the gitlab-plugin repository here. It's gitlab-branch-source-plugin.
gitlab-plugin repository : https://github.com/jenkinsci/gitlab-plugin

@Turiok
Copy link
Contributor

Turiok commented Jul 20, 2024

Hi @devensa ,

There is an option in administrator settings.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants