jenkinsci / gitlab-branch-source-plugin

A Jenkins Plugin for GitLab Multibranch Pipeline jobs and Folder Organization
https://plugins.jenkins.io/gitlab-branch-source
MIT License
119 stars 85 forks source link

Multi Branch Job Executed in jenkins but Pipeline status is still running state in GitLab #394

Open prasad-clouduser opened 4 months ago

prasad-clouduser commented 4 months ago

Jenkins and plugins versions report

Environment ```text Paste the output here ```

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

GitLab deployed on VM (RHEL)

Reproduction steps

  1. Created GitLab server connection with detected the Projects in GitLab. (Added webhook config)
  2. Created a multi branch pipeline using this plugin and discovered the branches.
  3. Open a merge request in GitLab project and trigger the Multi Branch Pipeline.
  4. Multi Branch Pipeline detected the Open MR and Ran the Job and completed successfully.
  5. But in GitLab It is showing Pipeline is still in running state because of which can't merge the MR (unless pipeline status shows as success in Gitlab)

Expected Results

Pipeline in GitLab should display the status and allow the merge request to merge successfully.

Actual Results

Pipeline is always in Running State and not displaying the success or failure status.

Anything else?

No response

Are you interested in contributing a fix?

No response

prasad-clouduser commented 4 months ago

PIC See the screenshot, which is still running state even though pipeline is completed in Jenkins.

lmife commented 4 months ago

We are also encountering this issue from time to time. See my comment at https://issues.jenkins.io/browse/JENKINS-70010?focusedId=443439&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-443439 Could this be the reason for you as well?

lmife commented 4 months ago

In the console log, the [GitLab Pipeline Status] Notified message will be missing. Normally, a build should end like this:

[GitLab Pipeline Status] Notifying branch build status: SUCCESS build/name #17: This commit looks good.
[GitLab Pipeline Status] Notified
Finished: SUCCESS
prasad-clouduser commented 4 months ago

https://github.com/jenkinsci/gitlab-branch-source-plugin/issues/395

In the console log, the [GitLab Pipeline Status] Notified message will be missing. Normally, a build should end like this:

[GitLab Pipeline Status] Notifying branch build status: SUCCESS build/name #17: This commit looks good.
[GitLab Pipeline Status] Notified
Finished: SUCCESS

Check this one more issue I opened yesterday, when I opened custom script, it was not returning the status. https://github.com/jenkinsci/gitlab-branch-source-plugin/issues/395

banholzer commented 3 months ago

we experience the exact same thing here.

we also see this in the logs: image