Skip to content
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

az-pipelines: add page #7186

Merged
merged 7 commits into from
Nov 4, 2021
Merged
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions pages/common/az-pipelines.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# az pipelines

> Manage Azure Pipelines resources.
> Part of `azure-cli`.
> More information: <https://docs.microsoft.com/cli/azure/pipelines>.

- Create a new Azure Pipeline (YAML based):

`az pipelines create --org {{organization_url}} --project {{project_name}} --name {{pipeline_name}} --description {{description}} --repository {{repository_name}} --branch {{branch_name}}`

- Delete a pipeline:
salem84 marked this conversation as resolved.
Show resolved Hide resolved

`az pipelines delete --org {{organization_url}} --project {{project_name}} --id {{pipeline_id}}`

- List pipelines:

`az pipelines list --org {{organization_url}} --project {{project_name}}`

- Queue (run) a pipeline:
salem84 marked this conversation as resolved.
Show resolved Hide resolved

`az pipelines run --org {{organization_url}} --project {{project_name}} --name {{pipeline_name}}`

- Get the details of a pipeline:
salem84 marked this conversation as resolved.
Show resolved Hide resolved

`az pipelines show --org {{organization_url}} --project {{project_name}} --name {{pipeline_name}}`

- Update a pipeline:
salem84 marked this conversation as resolved.
Show resolved Hide resolved

`az pipelines update --org {{organization_url}} --project {{project_name}} --name {{pipeline_name}} --new-name {{pipeline_new_name}} --new-folder-path {{user1/production_pipelines}}`

- Get a list of agents in a pool:

`az pipelines agent list --org {{organization_url}} --pool-id {{agent_pool}}`