Open kartsm opened 3 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @narula0781, @ashishonce, @romil07.
Author: | kartsm |
---|---|
Assignees: | - |
Labels: | `DevOps`, `Pipelines`, `Service Attention` |
Milestone: | - |
pipelines
I upvote for that feature.
We are determining a few things from template parameters like the environment. Right now, I can't use the cli since it will always use the default settings.
Any news on this?
pipelines service team should look into this.
Can someone show me the file of the pipelines commands? I could develop this, but somehow I can't find any files related to pipelines, builds or queueing.
Would be awesome this feature.
Any chance this feature be considered in the next versions?
This now actually works with the Azure DevOps extension mentioned here: https://github.com/Azure/azure-devops-cli-extension/issues/972
Usage is pretty easy:
az pipelines run --name "<pipeline-name>" --parameters key=value --project "<project>"
I've been using az pipelines build queue
all along. I don't know if az pipelines run
is new, or if it's always been there and I just didn't notice. +1 to @DSpirit for the tip.
Waitaminnit, it doesn't show up in the docs at https://docs.microsoft.com/en-us/cli/azure/service-page/azure%20pipelines?view=azure-cli-latest . No wonder I didn't notice it. Is it really newer than the docs, or just undocumented? EDIT: I stand corrected. There it is.
Is your feature request related to a problem? Please describe.
I have a build pipeline defined in an
azure-pipelines.yml
file that I would like to be able to launch with user inputs in the Azure DevOps web UI. We are anticipating turning this pipeline into something of a service catalog item for our internal IT organization.What the UI and YAML call "parameters" seems to be the natural choice for soliciting and validating user inputs before the build is launched. (What the UI and YAML call "variables" do not actively solicit input, but if you look for them they are there.)
I was researching how to queue builds with both "parameters" and "variables" (as they are known in the Azure DevOps web UI; the builds get API appears to call them
templateParameters
andparameters
respectively). az pipelines build queue appears to offer the setting of "variables" but not "parameters" in its help.Describe the solution you'd like
Please extend the
az pipelines build queue
command to pass "parameters" to the queued build. On the command line this might look like:When I retrieve the build record I'd like to see something like:
The various help texts should be updated accordingly.
Describe alternatives you've considered
I have considered custom-crafting the appropriate HTTP requests with curl, and using the Azure DevOps Python SDK. In terms of long-term maintenance by humans, a solution in the CLI seems to be the best way to express intent. I consider it clearer than either hand-crafting a complex JSON request body or writing custom Python code.
Additional context