Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Create Pipeline variables are not set properly #832

Open
ivancli opened this issue Mar 21, 2025 · 0 comments
Open

Create Pipeline variables are not set properly #832

ivancli opened this issue Mar 21, 2025 · 0 comments

Comments

@ivancli
Copy link

ivancli commented Mar 21, 2025

The GitLab API documentation specifies that pipeline variables should be included directly in the request body
(see: https://docs.gitlab.com/api/pipelines/#create-a-new-pipeline).

However, the createPipeline() method in the GitLab PHP Client incorrectly places these variables within a variables field in the request body, leading to a variables is invalid error from the GitLab API.
(see:

$parameters['variables'] = $variables;
)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

1 participant