No "Running" status for Matrix Jobs
Issue
Context
- Gitlab plugin version: 1.5.8
- Gitlab version: 11.0.3
- Jenkins version: 2.131
- Job type: Matrix
Logs & Traces
I am not sure which are the relevant logs but will provide any necessary information that might help.
Problem description
I have configured a Matrix Job which performs cross-platform compilation and testing. Once triggered by a GitLab commit the Pipeline status is correctly set to "Pending". It remains in this state until the Jenkins job finishes. Then it immediately transitions to "Finished". The "Running" status is skipped.
I have tried to configure the "Publish build status to GitLab" post-build action with and without the Flexible Publish plugin but did notice any change in behavior.
I think this might be a known limitation of the support for Matrix jobs. @evgeni added that support, maybe he can confirm this for us.
I must admit I can't remember if that ever worked for us (and by now most of our jobs are pipelines with parallel runs).
Does it work for plain freestyle jobs for you?
Yes. Freestyle jobs work.
@evgeni there may also have been some changes around how the plugin sends different statuses since the time when you added Matrix support in #543. I don't think I can fix this, but if you have time to look into it I would appreciate it!
I am facing a similar issue, which I am uncertain whether it might be related to this issue as well or not.
GitLab: GitLab Community Edition 14.4.2 Jenkins: 2.289.2 GitLab Plugin: 1.5.13 Job Type: Multi-configuration project / Matrix Job Flexible publish plugin: 0.16.1
Problem: "pending" status is not reported to GitLab. Build result status is updated as expected.
I added the flexible publish plugin strategy as proposed (see screenshot below). Everything works fine, except that I do not get any pending or running status submitted to GitLab. The pipeline status in GitLab is updated when the Jenkins job has finished only. It is not a deal breaker at that but it is confusing the end users, by making them think nothing has started. And some jobs do really run a long time there.

Any ideas/suggestions?