-
Notifications
You must be signed in to change notification settings - Fork 486
Closed
Labels
Description
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)