jenkinsci / gitlab-plugin

A Jenkins plugin for interfacing with GitLab
https://plugins.jenkins.io/gitlab-plugin/
GNU General Public License v2.0
1.44k stars 614 forks source link

MR Jenkins Build Status after re-triggering the same build #985

Open praveen-mummasani opened 5 years ago

praveen-mummasani commented 5 years ago

Issue

When we create a MR,we are able to see build status as running in the GitLab.Due to any issue the build fails and we just re-trigger the build again from Jenkins,gitlab is not showing latest build status and just showing build status as failed from the previous build.

Context

Logs & Traces

No Logs in the GitLab

Problem description

Describe your problem in a meaningful way:

antonovicha commented 5 years ago

we just re-trigger the build again from Jenkins

That is why MR is not updated in GitLab. Because Jenkins does not have MR context when manually triggered. So it can not wire up pipeline run with GitLab MR.

and need to push dummy commit again to get the latest status as green

Instead you can use "Comment (regex) for triggering a build" GitLab plugin property to specify MR discussion message that will re-trigger build in Jenkins.

BenPortner commented 1 year ago

Hello @antonovicha,

I'm facing a similar issue. I tried the fix you proposed (re-triggering via Gitlab comment). Unfortunately, this does not resolve the issue. The second pipeline is successful, but the Gitlab pipeline status is still "failed". Is this a bug in the plugin or in Gitlab itself? image