jenkinsci / jenkinsci/gitlab-plugin

Support environment variable expansion in GitLabCommitStatusPublisher's "name"

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

Description

### What feature do you want to see added?

[GitLabCommitStatusPublisher](https://github.com/jenkinsci/gitlab-plugin/blob/master/src/main/java/com/dabsquared/gitlabjenkins/publisher/GitLabCommitStatusPublisher.java) accepts a "name" that is configured in the Jenkins UI to be reported to Gitlab for viewing on the piepline page.

I would like to populate the name, that is sent to Gitlab, with an environment variable from the Jenkins job execution.
My configuration in the Jenkins UI would contain something like "TestJob-WithEnv-${PRESET_IN_ENV}" and I would expect that variable to be resolved before the status is transmitted to Gitlab.

### Upstream changes

_No response_

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.