Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure DevOps Using Taskgroup in YAML Build

I've created a Task group to encapsulate some functionality. If I use a regular build, I can add the task group through the normal wizard.

Unfortunately, I need to use the task group inside a YAML build. I can't view the YAML of the "old" build to view how this should gonna happen.

The things I've tried:

  - task: TaskGroupName@1
    displayName: 'RunTests' 
    inputs:
      TestConfiguration: 'some.xml'
      TestCaseFilter: $(TestCaseFilter)
      UnitTestFolders: $(UnitTestFolders)
like image 934
Oswald Avatar asked Jun 11 '26 21:06

Oswald


1 Answers

According to the docs, Task groups are not supported in the YAML pipelines.

Instead, in that case you can use templates.

Documentation for templates: See here

like image 102
Shayki Abramczyk Avatar answered Jun 17 '26 14:06

Shayki Abramczyk