Enable group runners #1502
Replies: 2 comments
|
TL;DR: I believe this is a Gitlab API issue and not something that python-gitlab can fix. It seems like group runners can only be enabled or disabled as a group. Meaning either the project can use the group's runners or not. It does not appear that a single group runner can be enabled. Only all group runners are enabled or all group runners are disabled. An individual project runner can be enabled or disabled, but that is not what you have there. I don't see any support in the API to enable/disable group runners per project 😟 But maybe I don't see it. This is what generates that error you see: |
|
Thanks a lot for your answer, you even find the code bloc with my errors :) It's confirm my first think., there is for moment no support for this feature in api. |

TL;DR: I believe this is a Gitlab API issue and not something that python-gitlab can fix.
It seems like group runners can only be enabled or disabled as a group. Meaning either the project can use the group's runners or not.
It does not appear that a single group runner can be enabled. Only all group runners are enabled or all group runners are disabled.
An individual project runner can be enabled or disabled, but that is not what you have there.
I don't see any support in the API to enable/disable group runners per project 😟 But maybe I don't see it.
This is what generates that error you see:
https://gitlab.com/gitlab-org/gitlab/-/blob/c9a19a219fb7fd84fc2c321a0de5adb54049365d/lib/api/ci/…