Create project API does not respect admin CI disable setting

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

  • Label this issue
  • Close this issue

Summary

When CI is disabled globally using the site-wide admin setting (https://docs.gitlab.com/ce/ci/enable_or_disable_ci.html#site-wide-admin-setting), projects created via the API are created with builds/pipelines enabled.

Steps to reproduce

  1. Disable CI globally as described here: https://docs.gitlab.com/ce/ci/enable_or_disable_ci.html#site-wide-admin-setting
  2. Create a project using the API passing in just the name and path parameters
  3. Check in project's Settings > Permissions and confirm that Pipelines is set to enabled

What is the current bug behavior?

Projects created using the API have builds enabled.

What is the expected correct behavior?

Projects created using the API should not have builds enabled when CI is disabled globally.

Possible fixes

https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/api/projects.rb#L147

Edited Aug 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading