jenkinsci / jenkinsci/gitlab-plugin

multiple jenkins webhooks cause duplicate status in gitlab

Open
#1,114 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.4k
Forks
615
Avg merge
4h 32m
Merged PRs (30d)
10

Description

## Issue
multiple jenkins webhooks cause duplicate status in gitlab

### Context
- **Gitlab plugin version**: 1.6
- **Gitlab version**: 13.8.0-ee
- **Jenkins version**: 2.235.5
- **Job type**: Freestyle

### Logs & Traces

We haven't found anything significant in either jenkins or gitlab logs.

### Problem description

- set up 2 web hooks in a single gitlab repo to jenkins
- set up both jenkins jobs to publish status back to the same gitlab repo (NB: that this issue doesn't occur if either job does NOT have the publish option enabled)
- each commit to an MR will trigger the 2 jobs, but the pipelines that come back will have a duplicate.
- See screenshots below (there is a bundled ops-jenkins central-... and a separate ops-jenkins central..)
- The separate one never completes (presumably because the duplicate bundled one already got the notification that the job ended so the solo one will never get a notification)
- It's not the same job that's duplicated each time... it flips back and forth.

First status hover screenshot:
![2021-02-26_16-31](https://user-images.githubusercontent.com/2666849/109578028-7bcd9900-7aab-11eb-926c-689d61904ed3.png)
Second status hover screenshot:
![2021-02-26_16-31_1](https://user-images.githubusercontent.com/2666849/109578044-80924d00-7aab-11eb-9edb-1893203d5954.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.