2
votes

I have multiple release pipelines using similar set of tasks. I have created a task group as explained in Task Groups. I want to reuse this task group in other release pipelines.

I cannot find any task/menu item in Azure DevOps to do so. Documentation in Task Groups mentions exporting the release pipeline as json but the import section is not quite illustrative.

4
Same issue. Microsoft is just amazing: An unintuitive product and a documentation to match. Their documentation only talks about creating task by refactoring. But not to use it in another pipeline or stage. Another cool feature Microsoft put effort on is to make the output variables disappear in Taskgroup, just to make the developer life a bit more exciting. People having to post stackoverflow question for something that should be so easy is evidence of Microsoft's incompetence. And there are customers buying this product is what's feeding this incompetence.SijuMathew

4 Answers

4
votes

If you created a task group and you want to use it in another releases, just click on the + to add a task and in the search field start to type the task group name (for example TaskGroup1), then choose it:

enter image description here

0
votes

You need to search for the name of the Task group in the search box while adding a new task and not "task group".

If you created/imported a task group with name MyCar.FrontendApp, then in the search box for add a new task put "FrontendApp" and add that task.

0
votes

In case someone else will have this issue and will come to this thread: even after import and save new task group may not appear under Add task section. In this case try to click Refresh link on the top - it should fetch all changes and update the cached tasks list: enter image description here

-1
votes

I had the same issue and could not find my Task Groups. What fixed it was:

Under Pipelines, go to Task Groups. There you have an Import button where you can import the json Task Group file. When this is done, the Task Group became selectable when wanting to add a new Task.

Hope this helps :)