jenkinsci / jenkinsci/gitlab-plugin

Gitlab Upgrade Broke User Email

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

Description

## Issue

Upgrading Gitlab from 11.7.0 -> 11.7.3 broke some of our jobs. Specifically, `$gitlabUserEmail` isn't being set anymore

### Context
- **Gitlab plugin version**:
- **Gitlab version**: 11.7.3
- **Jenkins version**: 2.150.2
- **Job type**: Pipeline

### Logs & Traces

It looks like the failure is because the user_email in the json payload from gitlab is an empty string.

Also, this problem doesn't occur when using the test button from gitlab.

### Problem description

The gitlab user email environment variable suddenly disappeared with the 11.7.3 update. This worked on 11.7.0.

```
echo """
$gitlabBranch
$gitlabSourceBranch
$gitlabActionType
$gitlabUserName
$gitlabUserEmail
$gitlabSourceRepoHomepage
$gitlabSourceRepoName
$gitlabSourceNamespace
$gitlabSourceRepoURL
$gitlabSourceRepoSshUrl
$gitlabSourceRepoHttpUrl
$gitlabBefore
$gitlabAfter
"""
```

That code is broken on 11.73. I had to remove the `$gitlabUserEmail` from the echo statement (and nothing else) to get the job to work again.

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.