---
title: "Gitlab Runner Environment Variables"
date: 2022-01-13T15:04:32.000Z
author: Z.SHINCHVEN
tags: [GitLab Runner]
canonical: https://atlassc.net/2022/01/14/gitlab-runner-environment-variables
---
In GitLab Runner CI/CD jobs we may need to use some environment variables, 
there are a few pre-defined variables like [${CI_JOB_TOKEN}](https://docs.gitlab.com/ee/ci/jobs/ci_job_token.html) we can use directly in our pipeline, 
and we can also define our own environment variables in runner's [config file](https://docs.gitlab.com/runner/configuration/advanced-configuration.html#:~:text=its%20volumes%20parameter.-,environment,-Append%20or%20overwrite).

```toml
[[runners]]
  environment = [
    "<ENV_NAME>=<ENV_VALUE>",
  ]
```
