I'm working on an Azure DevOps extension with a pipeline task. Currently I've published a public "official" version (ID: pr-commentator
) of the extension and a private version (ID: pr-commentator-dev
) for testing. I want to have both versions installed on my test ADO project to be able to test them, however, I'm struggling to figure out how to distinguish the tasks from each when setting up a pipline, as I seem to only be able to reference the non-unique name of the task:
# azure-pipelines.yaml
steps:
- task: PrCommentator@0 # Same name in both extensions
inputs:
# ...
The extension IDs and IDs for the tasks in each extension are all unique as required, but the task names are the same. Since there's no requirement for the name to be unique I'd assume there was a way to reference the one from the specific extension, but I can't figure out how.
I tried things like - task: pr-commentator-dev:PrCommentator@0
and - task: pr-commentator-dev@PrCommentator@0
, but the YAML editor doesn't seem to recognize that.
Is this simply not achievable (which means extensions can actually be incompatible)? I'm trying to simplify my extension publish workflow, but I'm wondering if I need to maintain different task names too.