Azure / Azure/pipelines

Multiple pipelines with the same name

Open
#28 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
85
Forks
99
PR merge metrics
No merged PRs in 30d

Description

I have a GitHub Action that should trigger an Azure DevOps pipeline. In my project, I have multiple pipelines that have the same name, but are grouped under different folders by convention. For example:

```
+ my-app-1
- deploy
+ my-app-2
- deploy
```

In the above, `my-app-1` and `my-app-2` are folders corresponding to different repositories, and our standards are to have a `deploy` pipeline for each repository. I would like to trigger specific `deploy` pipelines using a GitHub Action.

```
- name: Azure Pipelines Action
uses: Azure/pipelines@v1
with:
azure-devops-project-url: https://dev.azure.com/organization/project
azure-pipeline-name: 'deploy' # this is in question
azure-devops-token: ${{ secrets.AZURE_DEVOPS_TOKEN }}
```

How would I configure the action to trigger the `my-app-1/deploy` pipeline specifically?

In the above snippet, if I specify `deploy` by itself, I get an error:
`More than 1 Pipeline named "deploy" found in project "project"`

If I try to prefix this with either `my-app-1/deploy` or `my-app-1\deploy`, I get a different error:
`Failed request: (401)`

The only way I'm able to get this to work is if I give each pipeline a unique name, but I'd prefer not to have to break my existing conventions to do this.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.