> For the complete documentation index, see [llms.txt](https://docs.meterian.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.meterian.io/ci-server-integrations/gitlabcicd.md).

# GitLab CI/CD

### How to integrate Meterian with GitLab CI/CD

This step by step guide will help you integrate Meterian in your GitLab CI/CD pipelines.

**Set the METERIAN\_API\_TOKEN environment variable**

* From the menu select Setting > CI / CD
* “Expand” the Variables section
* Add new variable
* Check the “Mask variable” option

{% hint style="info" %}
To retrieve a Meterian API Token visit the [Meterian Dashboard](https://www.meterian.com/account); in your account select the tab "Tokens" and create a new one, or use an existing one.

API tokens are available only on paid account. To upgrade your subscription, please [contact us](mailto:support@meterian.io).
{% endhint %}

**Add Meterian to your pipeline**

There are a few ways you can configure a pipeline to integrate Meterian. Based on your needs and/or preferences you can choose one of the following:

* [Docker-in-Docker configuration](/ci-server-integrations/gitlabcicd/sample-java-project.md)
* [Meterian Docker image configuration](/ci-server-integrations/gitlabcicd/sample-scala-project.md)
* [Non-Meterian Docker image configuration](/ci-server-integrations/gitlabcicd/sample-unity-project.md)
