microsoft / azure-pipelines-yaml

Azure Pipelines YAML examples, templates, and community interaction
MIT License
1.21k stars 934 forks source link

how to triger a build pipeline from powershell #588

Closed msdansau closed 1 year ago

msdansau commented 1 year ago

Hi folks i urgently need to know if it is posible to triger any build pipeline in azure devops service from windows powershell in my machine. if so, please kindly paste the steps or share any online documentation so that i can catch up on it.

if this is not posible by design. Could you please at least indicate if this is posible to achieve from another pipeline using powershell task? share doc please. thanks in advance.

DmitriiBobreshev commented 1 year ago

Hi @msdansau, Thanks for the question. It's not possible from PowerShell directly, but you can use tfx-cli for it with tfx build command(see tfx build queue -help output for details).

msdansau commented 1 year ago

@DmitriiBobreshev thanks a lot. that answer my concern. much appreciated!.