Merge Request Preview Environments
Applies to: FlexLab
Overview
Merge Request Preview Environments (MRE) spin up temporary environments for GitLab merge requests.
Prerequisites
- FlexLab project with MRE enabled in platform settings / template.
- GitLab merge request workflow configured in
.gitlab-ci.yml.
Steps
- Push a branch and open a merge request in GitLab.
- Pipeline creates a preview environment job.
- Find preview URL in MR comment, GitLab environment page, or FlexSite Environments list (temporary card).
- Test changes on the preview hostname.
- Merge or close MR; preview environment is torn down automatically.
Credits
Preview environments consume credits while active. Close stale MRs to avoid waste.
Not available on Codeless or Atom tiers.