API does not support setting the forward_deployment_enabled (Skip outdated deployment jobs) parameter
Summary
I am unable to set the forward_deployment_enabled parameter when creating new projects via the API. As of 12.9 gitlab released https://docs.gitlab.com/ee/ci/pipelines/settings.html#skip-outdated-deployment-jobs. This defaults to true per this MR: 42a9c143. The only way to toggle it is to manually go into each project and toggle the check box for newly created projects. You should be able to toggle this parameter when creating new projects via api.
Steps to reproduce
curl --request POST \
--url https://gitlab.com/api/v4/projects \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'private-token: redacted' \
--data '{"name": "foo",
"auto_cancel_pending_pipelines": "disabled",
"forward_deployment_enabled": false
}'
A gitlab ci general setting auto_cancel_pending_pipelines
is able to be set via API, while the forward_deployment_enabled
is not.
What is the current bug behavior?
forward_deployment_enabled defaults to true, ignoring value in json post
What is the expected correct behavior?
To be able to set forward_deployment_enabled
to true
or false
Relevant logs and/or screenshots
Edited by Marcel Amirault