-
Notifications
You must be signed in to change notification settings - Fork 644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI pipeline trigger with variables? #663
Comments
Hi @vilhelmen This is a limitation with have in the CLI at the moment, "complex" arguments are not supported properly. |
what about Is there any way to pass parameters to a pipeline using the CLI? |
Hi, I am facing the same issue as @vilhelmen (still using curl for addressing this functionnality) : According to the GitLab API doc on trigger pipeline, the Any feedback on this issue ? |
I guess this is an other enhancement that also depends on #1735 |
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:
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
The text was updated successfully, but these errors were encountered: