Skip to content

Create Pipeline variables are not set properly #832

Open
@ivancli

Description

@ivancli

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;
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions