Skip to content

createPipeline with variable fails #354

@SamerAdra

Description

@SamerAdra

createPipeline with variables does not work.
GitLab's API documentation on this does not help, but I found a comment in an issue that seems to help. Rémy Coutable suggests passing in the ref and variables as URL parameters, even though it's a POST call. I tried it out and it does seem to work that way.

org.gitlab4j.api.GitLabApiException: The following fields have validation errors: variables.key, base

at org.gitlab4j.api.AbstractApi.validate(AbstractApi.java:593)
at org.gitlab4j.api.AbstractApi.post(AbstractApi.java:319)
at org.gitlab4j.api.PipelineApi.createPipeline(PipelineApi.java:254)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions