Skip to main content
Automate your agent testing with the Cekura GitLab CI/CD component. This guide shows you how to run Cekura scenarios on every code change, merge request, or scheduled pipeline. The component starts a Cekura test, waits for it to finish, and reports the result through GitLab job logs, the Tests tab, job annotations, and downloadable artifacts.

Before You Get Started

Before setting up a pipeline, configure your agent and scenarios in the Cekura dashboard.
You need:
  • A Cekura API key
  • Scenarios selected by IDs, tags, or evaluator folder
  • A Cekura project ID when selecting an evaluator folder
The agent ID is optional. If you omit it, Cekura infers the agent from the selected scenarios.

Choose Which Scenarios to Run

Scenario IDs

Run an exact set of scenarios using comma-separated IDs.

Tags

Run scenarios grouped by one or more comma-separated tags.

Evaluator Folder

Run every scenario in a folder. A project ID is required, even when you provide an agent ID.
Provide at least one selector. A folder cannot be combined with scenario IDs or tags.

Step-by-Step Tutorial

1

Add Your API Key

In your GitLab project, go to Settings → CI/CD → Variables, expand Variables, and select Add variable.Set the key to CEKURA_API_KEY, paste your Cekura API key as the value, and enable Masked.Enable Protected only when the Cekura job runs exclusively on protected branches or tags. Protected variables are not available to pipelines on unprotected refs.
Never put your API key directly in .gitlab-ci.yml.
2

Add the Component

Create or update .gitlab-ci.yml in the root of your repository:
Replace the scenario IDs with your own. You can use tags or folder_path instead.
3

Start a Test Run

Commit and push .gitlab-ci.yml. By default, the generated cekura-run job runs whenever the pipeline is triggered.You can also go to Build → Pipelines, select New pipeline, choose a branch, and select New pipeline again to test it manually.
4

Review the Results

Open the cekura-run job to see the result summary, failed-run details, and a shareable link to the full result in Cekura.GitLab also displays each scenario run in the pipeline’s Tests tab. The job publishes Markdown and JSON summaries as artifacts and adds a direct Cekura result link to the job page.

Run by Folder

Use folder_path with project_id to run all scenarios in an evaluator folder:

Configure Pipeline Triggers

The component creates a job named cekura-run. Define that job again in your pipeline to add GitLab rules; GitLab merges your configuration with the included job.
Create the schedule under Build → Pipeline schedules in your GitLab project.

Component Inputs

Only api_key and a scenario selector are needed for a typical run. Empty optional inputs are not sent to Cekura, so the API applies its defaults. *Provide at least one of scenario_ids, tags, or folder_path.

Example with Optional Inputs

Use the Result in Another Job

The component publishes RESULT_ID and RESULT_URL in a GitLab dotenv report. A downstream job can use them by downloading the cekura-run artifacts:

Troubleshooting

Check that CEKURA_API_KEY is defined under Settings → CI/CD → Variables and is spelled exactly the same in .gitlab-ci.yml.If the variable is protected, the pipeline must run on a protected branch or tag. Otherwise, clear the Protected option or change where the job runs.
Confirm that the component reference is exactly gitlab.com/cekura/cicd/run@1.0.0 and that inputs is nested under the component entry.Use Build → Pipeline editor → Validate in GitLab to validate the complete configuration.
Provide scenario_ids, tags, or folder_path. When using a folder, also provide project_id, and do not combine the folder with IDs or tags.
Open the cekura-run log for failure reasons and individual failed-run details. Follow the View full results in Cekura link for transcripts, evaluations, and the AI-generated analysis.