# 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](https://docs.meterian.io/ci-server-integrations/gitlabcicd/sample-java-project)
* [Meterian Docker image configuration](https://docs.meterian.io/ci-server-integrations/gitlabcicd/sample-scala-project)
* [Non-Meterian Docker image configuration](https://docs.meterian.io/ci-server-integrations/gitlabcicd/sample-unity-project)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.meterian.io/ci-server-integrations/gitlabcicd.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
