# GitLab Component Integration

### Installing the Component

{% embed url="<https://gitlab.com/explore/catalog/doesqa/doesqa-gitlab-cicd>" %}

### How to Use as a CI/CD Catalog Component

1. **Include the component in your `.gitlab-ci.yml`:**

```yaml
include:
  - component: gitlab.com/doesqa/doesqa-gitlab-cicd/doesqa-run@2.0.0
    inputs:
      DOESQA_COMPONENT_VERSION: "2.0.0" # Must match the tag above
      DOESQA_KEY: "$DOESQA_KEY"
      DOESQA_ACCOUNT_ID: "$DOESQA_ACCOUNT_ID"
      DOESQA_LABEL: "Nightly Test Run"
      DOESQA_WITHALL: "tag1,tag2"
      DOESQA_WITHOUTANY: "wip"
      DOESQA_VALUES: '{"URL": "https://example.com"}'
      DOESQA_WAIT: "true"
      DOESQA_TIMEOUT: "1800"
      DOESQA_CONCURRENCY: "20"
      DOESQA_RECIPE: "4sJz2"
      DOESQA_TESTSTAGGED: "priority"
```

* **Check** [**https://gitlab.com/doesqa/doesqa-gitlab-cicd/-/releases**](https://gitlab.com/doesqa/doesqa-gitlab-cicd/-/releases) **for the latest production version.**
* Set sensitive variables (like `DOESQA_KEY`) in your project’s CI/CD settings.

### Inputs

| Input                      | Description                                                   | Required | Example                          |
| -------------------------- | ------------------------------------------------------------- | -------- | -------------------------------- |
| DOESQA\_KEY                | Your DoesQA CI/CD key                                         | Yes      | `$DOESQA_KEY`                    |
| DOESQA\_ACCOUNT\_ID        | Your DoesQA Account ID                                        | Yes      | `$DOESQA_ACCOUNT_ID`             |
| DOESQA\_COMPONENT\_VERSION | The version/tag of the component to use (e.g., 2.0.0)         | Yes      | `2.0.0`                          |
| DOESQA\_LABEL              | Label for the test run                                        | No       | `Nightly Test Run`               |
| DOESQA\_WITHALL            | Flow Tags to include                                          | No       | `tag1,tag2`                      |
| DOESQA\_WITHOUTANY         | Any Flow Tags to exclude                                      | No       | `wip`                            |
| DOESQA\_VALUES             | Values to pass to the test run                                | No       | `{"URL": "https://example.com"}` |
| DOESQA\_WAIT               | Wait for the test run to complete                             | No       | `true`                           |
| DOESQA\_TIMEOUT            | Timeout in seconds                                            | No       | `1800`                           |
| DOESQA\_CONCURRENCY        | Number of concurrent tests to run                             | No       | `20`                             |
| DOESQA\_RECIPE             | Recipe to use for the test run (ID)                           | No       | `4sJz2`                          |
| DOESQA\_TESTSTAGGED        | Run only tests tagged with the specified tag within the flows | No       | `priority`                       |


---

# 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.does.qa/configuration/ci-cd/gitlab-component-integration.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.
