Before You Get Started
Before setting up a pipeline, configure your agent and scenarios in the Cekura dashboard.
- A Cekura API key
- Scenarios selected by IDs, tags, or evaluator folder
- A Cekura project ID when selecting an evaluator folder
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.
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.2
Add the Component
Create or update Replace the scenario IDs with your own. You can use
.gitlab-ci.yml in the root of your repository: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
Usefolder_path with project_id to run all scenarios in an evaluator folder:
Configure Pipeline Triggers
The component creates a job namedcekura-run. Define that job again in your pipeline to add GitLab rules; GitLab merges your configuration with the included job.
Run on Merge Requests and the Default Branch
Run on Merge Requests and the Default Branch
Run Only When Started Manually
Run Only When Started Manually
Run in Scheduled Pipelines
Run in Scheduled Pipelines
Component Inputs
Onlyapi_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 publishesRESULT_ID and RESULT_URL in a GitLab dotenv report. A downstream job can use them by downloading the cekura-run artifacts:
Troubleshooting
The API Key Is Not Available
The API Key Is Not Available
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.The Pipeline Configuration Is Invalid
The Pipeline Configuration Is Invalid
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.No Scenarios Were Selected
No Scenarios Were Selected
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.The Cekura Tests Fail
The Cekura Tests Fail
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.