jenkinsci / jenkinsci/gitlab-plugin

add merge_commit_sha to Cause

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

Description

## Issue

### Context
- **Gitlab plugin version**: 1.4.6
- **Gitlab version**: 9.3.10
- **Jenkins version**: 1.6.x
- **Job type**: Pipeline

### Logs & Traces

None

### Problem description

When merging an MR, GitLab sends the `merge_commit_sha` as part of the WebHook:

```
{
"object_kind": "merge_request",

"object_attributes": {

"merge_commit_sha": "eaafb2a11e5cbd08ba46dee9540275136c86e590",
},

}
```

It would be awesome if that would be available as part of the injected environment variables.

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.