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.
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
- Disable CI globally as described here: https://docs.gitlab.com/ce/ci/enable_or_disable_ci.html#site-wide-admin-setting
- Create a project using the API passing in just the
nameandpathparameters - 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 by 🤖 GitLab Bot 🤖