different ways to trigger pipeline in azure
- User
different ways to trigger pipeline in azure
- Assistant
Azure Pipelines, part of the Azure DevOps suite, supports various ways to trigger pipelines to suit different workflows and scenarios. Here are several methods to trigger Azure Pipelines:
-
Continuous Integration (CI) Trigger:
- Automatic Trigger on Code Changes: Pipelines can be set to trigger automatically on commits or pull requests to specific branches in your repository. This is common for CI/CD workflows.
yamltrigger: branches: include: - main - develop -
Scheduled Trigger:
- Time-Based Triggers: You can schedule pipelines to run at specific times or intervals.
yamlschedules: - cron: "0 0 * * 0" displayName: Weekly Sunday Run branches: include: - main -
Manual Trigger:
- Run on Demand: Pipelines can be triggered manually via the Azure DevOps portal by clicking the "Run pipeline" button.
- REST API: Pipelines can be triggered programmatically using Azure DevOps REST API.
shellcurl --request POST \ --url https://dev.azure.com/{organization}/{project}/_apis/pipelines/{pipelineId}/runs?api-version=6.0-preview.1 \ --header 'Authorization: Basic {personal-access-token}' -
Pipeline Trigger:
- Run Another Pipeline: One pipeline can be configured to trigger another pipeline.
yamlresources: pipelines: - pipeline: mypipeline source: 'other-pipeline' trigger: branches: include: - main -
Path-Based Trigger:
- Trigger on Specific Path Changes: Pipelines can be triggered based on changes to specific files or directory paths.
-
- User
trigger another pipeline when another pipeline completes
- Assistant
- User
can you explain again more clearly
- Assistant