You ca use the az
command line tool and the built-in Access Token, when you need to trigger a pipeline inside Azure DevOps on the same Organization.
- job:
displayName: "Run Pipeline"
steps:
- bash: |
az pipelines run --project 'PROJECT' --id 123456 --branch 'main'
displayName: 'Trigger Pipeline 123456'
env: