gitlabgitlab-cigitlab-ci-runnergitlab-8

Retrieving push metainformation and transferring it to the CI


I know, that in general GitLab CI scripts run after every push to the repository. How I can retrieve metainforation about the push and then transfer it to the GitLab CI?

By metainforation I mean:


Solution

  • You can find an overview of variables available in the CI here: https://docs.gitlab.com/ee/ci/variables/#predefined-variables-environment-variables.

    E.g.: