Skip to content

Feature Request: Add method to query pipeline variables #431

@marcojahn

Description

@marcojahn

Please add the possibility to query pipeline variables as available by the Rest API

curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/pipelines/46/variables"

with an example response of

[
  {
    "key": "RUN_NIGHTLY_BUILD",
    "variable_type": "env_var",
    "value": "true"
  },
  {
    "key": "foo",
    "value": "bar"
  }
]

API could look like the following

public List<Variable> getPipelineVariables(Object projectIdOrPath, int pipelineId) throws GitLabApiException {

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions