File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
src/main/java/io/jenkins/plugins/gitlabbranchsource/Cause Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -550,6 +550,7 @@ GITLAB_REPO_HOMEPAGE
550
550
GITLAB_REPO_GIT_SSH_URL
551
551
GITLAB_REPO_GIT_HTTP_URL
552
552
GITLAB_REPO_VISIBILITY_LEVEL
553
+ GITLAB_COMMIT_COUNT
553
554
GITLAB_REQUEST_URL
554
555
GITLAB_REQUEST_STRING
555
556
GITLAB_REQUEST_TOKEN
Original file line number Diff line number Diff line change 6
6
import org .kohsuke .stapler .export .Exported ;
7
7
import org .kohsuke .stapler .export .ExportedBean ;
8
8
9
+ import static io .jenkins .plugins .gitlabbranchsource .Cause .GitLabCauseUtils .defaultIntString ;
9
10
import static io .jenkins .plugins .gitlabbranchsource .Cause .GitLabCauseUtils .defaultLongString ;
10
11
import static io .jenkins .plugins .gitlabbranchsource .Cause .GitLabCauseUtils .defaultVisibilityString ;
11
12
import static org .apache .commons .lang .StringUtils .defaultString ;
@@ -48,6 +49,7 @@ public GitLabPushCauseData(PushEvent pushEvent) {
48
49
this .variables .put ("GITLAB_REPO_GIT_SSH_URL" , defaultString (pushEvent .getRepository ().getGit_ssh_url ()));
49
50
this .variables .put ("GITLAB_REPO_GIT_HTTP_URL" , defaultString (pushEvent .getRepository ().getGit_http_url ()));
50
51
this .variables .put ("GITLAB_REPO_VISIBILITY_LEVEL" , defaultVisibilityString (pushEvent .getRepository ().getVisibility_level ()));
52
+ this .variables .put ("GITLAB_COMMIT_COUNT" , defaultIntString (pushEvent .getTotalCommitsCount ()));
51
53
this .variables .put ("GITLAB_REQUEST_URL" , defaultString (pushEvent .getRequestUrl ()));
52
54
this .variables .put ("GITLAB_REQUEST_STRING" , defaultString (pushEvent .getRequestQueryString ()));
53
55
this .variables .put ("GITLAB_REQUEST_TOKEN" , defaultString (pushEvent .getRequestSecretToken ()));
You can’t perform that action at this time.
0 commit comments