[JIRA] (JENKINS-61683) Add GitLab variables to environment

64 views
Skip to first unread message

vincent.letarouilly@gmail.com (JIRA)

unread,
Mar 25, 2020, 8:21:02 AM3/25/20
to jenkinsc...@googlegroups.com
Vincent Letarouilly created an issue
 
Jenkins / Improvement JENKINS-61683
Add GitLab variables to environment
Issue Type: Improvement Improvement
Assignee: Parichay Barpanda
Components: gitlab-branch-source-plugin
Created: 2020-03-25 12:20
Environment: Jenkins 2.227
gitlab-branch-source-plugin 1.4.4
Labels: plugin environment-variables gitlab
Priority: Minor Minor
Reporter: Vincent Letarouilly

A great addition would be to have GitLab Webhook information available as environment variable such as:

  • `object_kind` -> `GITLAB_OBJECT_KIND`
  • `projectId` -> `GITLAB_PROJECT_ID`

This would allow us to do different things in our scripted pipelines depending on the type of event.

An easier solution would be to provide just one env variable like `GITLAB_BRANCH_TYPE` that could be either `NORMAL` / `CHANGE_REQUEST` / `TAG`
While we do not plan to use `projectId` at the moment, I still think it could benefit other users of the plugin.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

vincent.letarouilly@gmail.com (JIRA)

unread,
Mar 25, 2020, 8:43:03 AM3/25/20
to jenkinsc...@googlegroups.com
Vincent Letarouilly updated an issue
Change By: Vincent Letarouilly
A great addition would be to have GitLab Webhook information available as environment variable such as:

* ` {{ object_kind ` }} -> ` {{ GITLAB_OBJECT_KIND ` }}
*
` {{ projectId ` }} -> ` {{ GITLAB_PROJECT_ID ` }}

This would allow us to do different things in our scripted pipelines depending on the type of event.

An easier solution would be to provide just one env variable like
` {{ GITLAB_BRANCH_TYPE ` }} that could be either ` {{ NORMAL ` }} / ` {{ CHANGE_REQUEST ` }} / ` {{ TAG ` }}
While we do not plan to use `projectId` at the moment, I still think it could benefit other users of the plugin.

vincent.letarouilly@gmail.com (JIRA)

unread,
Mar 25, 2020, 8:43:04 AM3/25/20
to jenkinsc...@googlegroups.com

parichay.barpanda@gmail.com (JIRA)

unread,
Apr 25, 2020, 4:49:02 AM4/25/20
to jenkinsc...@googlegroups.com
Parichay Barpanda started work on Improvement JENKINS-61683
 
Change By: Parichay Barpanda
Status: Open In Progress

parichay.barpanda@gmail.com (JIRA)

unread,
Apr 25, 2020, 4:50:02 AM4/25/20
to jenkinsc...@googlegroups.com

parichay.barpanda@gmail.com (JIRA)

unread,
Apr 25, 2020, 8:07:02 AM4/25/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages