Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61683

Add GitLab variables to environment

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          opa Vincent Letarouilly created issue -
          opa Vincent Letarouilly made changes -
          Field Original Value New Value
          Description 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.
          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.
          opa Vincent Letarouilly made changes -
          Description 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.
          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.
          baymac Parichay Barpanda made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          baymac Parichay Barpanda added a comment -
          Show
          baymac Parichay Barpanda added a comment - This is a work in progress  https://github.com/jenkinsci/gitlab-branch-source-plugin/pull/86
          baymac Parichay Barpanda made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]

            People

            Assignee:
            baymac Parichay Barpanda
            Reporter:
            opa Vincent Letarouilly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: