Skip to content

gitlab ci - resource groups are not blocked for succeeding pipelines if there are still stages left in a running pipeline that needs that resource

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

actually a resource group is allocated only per stage https://docs.gitlab.com/ce/ci/yaml/#resource_group

this leads to simultan usage of the group from different pipelines and stuck pipelines if there are multiple stages using this resource_group.

example: Pipeline: stage1 & stage2 uses resource_group: test

  1. stage1 started in a pipeline (named stage1 at pipeline 1: stage1@1)
  2. a second pipeline is started
  3. stage1@2 is blocked due to blocked resource_group
  4. stage1@1 succeeds
  5. stage1@2 starts and stage2@1 is blocked 💊

expected:

  1. stage1@2 and stage2@2 are blocked unless stage1@1 and stage1@1 are finished
Edited by 🤖 GitLab Bot 🤖