Skip to content

Creating project via api with group_runners_enabled parameter results in a project with missing ci_cd_settings

Summary

Creating project via api with group_runners_enabled parameter results in a project with missing ci_cd_settings

Steps to reproduce

curl -XPOST 'http://gdk.test:3000/api/v4/projects' --header "PRIVATE-TOKEN: <token>" --header "Content-Type: application/json" --data '{"name": "test-settings101", "namespace_id": 1, "group_runners_enabled": 1}'

What is the current bug behavior?

A project is created but missing its ci_cd_settings association

What is the expected correct behavior?

ci_cd_settings should be created alongside the project

Possible fixes

Relevant investigation and workaround #393502 (comment 1336908924)

Edited by Jio Castillo