Added additional variable GITLAB_USER_USERNAME to variables in GitLabPushCauseData and GitLabTagPushCauseData, which contains username of GitLab user who triggered the change. This variable is already available in AbstractPushEvent from org.gitlab4j.api.webhook which is used by these classes, this change only exposes them.
### Submitter checklist
- [x] Make sure you are opening from a **topic/feature/bugfix branch** (right side) and not your main branch!
- [x] Ensure that the pull request title represents the desired changelog entry
- [x] Please describe what you did
- [x] Link to relevant issues in GitHub or Jira
- [x] Link to relevant pull requests, esp. upstream and downstream changes
- [x] Ensure you have provided tests - that demonstrates feature works or fixes the issue
What is done
Added additional variable
GITLAB_USER_USERNAME
to variables inGitLabPushCauseData
andGitLabTagPushCauseData
, which contains username of GitLab user who triggered the change. This variable is already available inAbstractPushEvent
fromorg.gitlab4j.api.webhook
which is used by these classes, this change only exposes them.Fixes https://github.com/jenkinsci/gitlab-branch-source-plugin/issues/385
Testing
Tested with simple multibranch pipeline job built on gitlab push event, with following Jenkinsfile
Output with latest release of the plugin:
Output with plugin built from this branch: