2
votes

I am trying to figure out how to import my external test results into Azure DevOps.

This article describes how to publish the results within the same pipeline. But that's not going to help me. We do use Azure pipelines to build and deploy our solution, but the testing is run after that (in a deployed environment), so, outside of the pipeline. We can collect the results (in a Azure DevOps suitable format) and would like to feed it back into Azure DevOps release that did the deployment. All tips are welcome.

A similar question was posted some time ago: stackoverflow.com/questions/58874238/…JukkaK
However, you'd probably need a suitable way to wait for the tests to be run before finishing the release stage. Can the test run be triggered from release pipeline? If not, valid options would probably be adding some kind of post deployment gate that waits for the test run to be completed. Haven't actually ever used those. Or a separate stage that would trigger when the test run is complete and collect the results.JukkaK
Concepts from here: docs.microsoft.com/en-us/azure/devops/pipelines/release/… and more specifically here: docs.microsoft.com/en-us/azure/devops/pipelines/release/… . Building, say, an API just for polling for test results sounds a bit far fetched to me, so how about adding a stage after the deployment stage with a pre-approval gate with 6 hour delay before evaluation? Or a scedhuled trigger if applicable?JukkaK
Release waiting for approval should not consume an agent: docs.microsoft.com/en-us/azure/devops/pipelines/licensing/…JukkaK
No problem. If you get it to work, do post an answer here detailing what you did.JukkaK