Skip to content

Automatic pipeline cleanup setting not copied from custom project template

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

Summary

When creating a new project, using custom project templates for a group the setting for Automatic pipeline cleanup inside the template repository is not being copied to the newly created project.

Steps to reproduce

  1. Create a gitlab group test
  2. Create a sub group templates inside the group test
  3. Create a project project-template inside the sub group
  4. Inside project project-template go to Settings -> CI/CD -> General pipelines and set Automatic pipeline cleanup to 6mo
  5. Inside group test go to Settings -> General -> Custom project templates, select the sub group templates and save changes
  6. Create a new project test-project inside the group test, choose Create from template and choose project-template from the Group tab
  7. Check inside test-project for setting Automatic pipeline cleanup under Settings -> CI/CD -> General pipelines and find the setting empty

What is the current bug behavior?

Inside a new project, created using a custom project template, the setting Automatic pipeline cleanup is not the same as the setting inside the project template repository.

What is the expected correct behavior?

Inside a new project, created using a custom project template, the setting Automatic pipeline cleanup is the same as the setting inside the project template repository.

Output of checks

Results of GitLab environment info

running in on-premise gitlab instance

GitLab Enterprise Edition v18.2.2-ee

Edited by 🤖 GitLab Bot 🤖