Set directory of .gitlab-ci.yml via REST

Viewed 95

Gitlab allows you to change the place it looks for the .gitlab-ci.yml file:

enter image description here

I want to change this location via REST in all projects of a gitlab group.

Although I browsed through the gitlab rest api description, I was not able to find the right endpoint.

Can somebody help me?

1 Answers

This is the edit project API. The parameter controlling this is the ci_config_path.

curl --request PUT --header "PRIVATE-TOKEN: <your-token>" \
     --url 'https://gitlab.com/api/v4/projects/<your-project-ID>' \
     --data "ci_config_path=path/to/ci-config.yml"
Related