简体   繁体   English

内部版本号为 Azure Devops 的 Allure 报告

[英]Allure report with build number Azure Devops

I am created Web App in Azure Portal.我在 Azure 门户中创建了 Web 应用程序。 And set up Allure report plugin to Azure Devops.并将 Allure 报告插件设置为 Azure Devops。 Everything work fine, but when I start new pipeline with test, the old test information in the portal is removed and the new one is added.一切正常,但是当我开始新的测试管道时,门户中的旧测试信息被删除并添加了新的。 It turns out that in the end I can not view the old information about the tests when I want.事实证明,最终我无法在需要时查看有关测试的旧信息。 I tried to configure the Allure report step so that the folder that will be created has its own $(Build.BuildNumber), but if it is uploaded via FTP to the portal, the portal becomes inaccessible because a folder with a report appears in the path /site/wwwroot and the portal does not reproduce it.我尝试配置 Allure 报告步骤,以便将要创建的文件夹有自己的 $(Build.BuildNumber),但如果通过 FTP 上传到门户,则门户变得不可访问,因为带有报告的文件夹出现在路径 /site/wwwroot 并且门户不会复制它。 How do I need to set up my web app or steps in azure devops so that I can save and view reports, both old and new?我需要如何设置我的 web 应用程序或 azure devops 中的步骤,以便我可以保存和查看新旧报告?

The Allure Generate Build Step will only generate the Allure report and save it as a build artifact. Allure Generate Build Step 只会生成 Allure 报告并将其保存为构建工件。 Then, using Azure File Copy task to copy the repots to Microsoft Azure storage blobs may help you to collect all the reports.然后,使用Azure 文件复制任务将报告复制到 Microsoft Azure 存储 blob 可能会帮助您收集所有报告。 Then, you could access the blob with all the reports as you want.然后,您可以根据需要访问包含所有报告的 blob。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM