jenkinsci / jenkinsci/gitlab-plugin
Support environment variable expansion in GitLabCommitStatusPublisher's "name"
- 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
Assessment
This issue has not been assessed yet.