Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CLI pipeline trigger with variables? #663

Open
@vilhelmen

Description

@vilhelmen

Description of the problem, including code/CLI snippet

It doesn't seem possible to trigger a pipeline and send variables from the CLI, but maybe I'm doing something wrong? I was hoping to use the cli instead of a bunch of curl for easier project id resolution, but I admit JSON on the CLI is gross and I should probably just do it directly in three lines of python.

Example I'm trying:

gitlab project trigger-pipeline \        --id 43 \        --ref "dev" \        --token "XXXXXXX" \        --variables "{\"TEST\": \"??????????\"}"

If you run a pipeline trigger with debug on, you can see that it's sending an empty variables dictionary by default:

send: b'{"ref": "dev", "token": "XXXXXXX", "variables": {}}'

Expected Behavior

Trigger pipeline with variables

Actual Behavior

gitlab: error: unrecognized arguments: --variables {"TEST": "??????????"}

Specifications

  • python-gitlab version: 1.7.0
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com): 11.5.3-ee

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp