Skip to content

Commit

Permalink
Adding GITLAB_USER_USERNAME variable to GitLabPushCauseData and GitLa…
Browse files Browse the repository at this point in the history
…bTagPushCauseData (#387)
  • Loading branch information
janis-pigoznis authored Jan 25, 2024
1 parent a51e812 commit aed303b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ GITLAB_REF
GITLAB_CHECKOUT_SHA
GITLAB_USER_ID
GITLAB_USER_NAME
GITLAB_USER_USERNAME
GITLAB_USER_EMAIL
GITLAB_PROJECT_ID
GITLAB_PROJECT_ID_2
Expand Down Expand Up @@ -591,6 +592,7 @@ GITLAB_REF
GITLAB_CHECKOUT_SHA
GITLAB_USER_ID
GITLAB_USER_NAME
GITLAB_USER_USERNAME
GITLAB_USER_EMAIL
GITLAB_PROJECT_ID
GITLAB_PROJECT_ID_2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public GitLabPushCauseData(PushEvent pushEvent) {
this.variables.put("GITLAB_CHECKOUT_SHA", defaultString(pushEvent.getCheckoutSha()));
this.variables.put("GITLAB_USER_ID", defaultLongString(pushEvent.getUserId()));
this.variables.put("GITLAB_USER_NAME", defaultString(pushEvent.getUserName()));
this.variables.put("GITLAB_USER_USERNAME", defaultString(pushEvent.getUserUsername()));

Check warning on line 27 in src/main/java/io/jenkins/plugins/gitlabbranchsource/Cause/GitLabPushCauseData.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 27 is not covered by tests
this.variables.put("GITLAB_USER_EMAIL", defaultString(pushEvent.getUserEmail()));
this.variables.put("GITLAB_PROJECT_ID", defaultLongString(pushEvent.getProjectId()));
this.variables.put(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public GitLabTagPushCauseData(TagPushEvent tagPushEvent) {
this.variables.put("GITLAB_CHECKOUT_SHA", defaultString(tagPushEvent.getCheckoutSha()));
this.variables.put("GITLAB_USER_ID", defaultLongString(tagPushEvent.getUserId()));
this.variables.put("GITLAB_USER_NAME", defaultString(tagPushEvent.getUserName()));
this.variables.put("GITLAB_USER_USERNAME", defaultString(tagPushEvent.getUserUsername()));

Check warning on line 27 in src/main/java/io/jenkins/plugins/gitlabbranchsource/Cause/GitLabTagPushCauseData.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 27 is not covered by tests
this.variables.put("GITLAB_USER_EMAIL", defaultString(tagPushEvent.getUserEmail()));
this.variables.put("GITLAB_PROJECT_ID", defaultLongString(tagPushEvent.getProjectId()));
this.variables.put(
Expand Down

0 comments on commit aed303b

Please sign in to comment.