Skip to content
Latchkey

What Is a Resource Group in CI?

A resource group is a label that, when shared by multiple jobs, makes the CI system run those jobs sequentially rather than in parallel. It enforces mutual exclusion over something the jobs contend for, such as a deployment environment. Only one job holding the group runs at a time.

Why it matters

Two deploy jobs hitting the same environment at once can race and corrupt state. Assigning them a resource group serializes them so deployments happen one after another. It is the standard guard against concurrent deploys to a single target.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →