简体   繁体   English

如何修改 azure 管道中测试结果的存储库/存储位置

[英]How to modify the repository / storage location for Test Results in azure pipeline

For one of my project the TestResults.zip file is publishing on url https://dev.azure.com/MyProject/Project/_TestManagement/Runs?runId=8309822&_a=runCharts .对于我的一个项目,TestResults.zip 文件发布在 url https://dev.azure.com/MyProject/Project/_TestManagement/Runs?runId=8309822&_a=runCharts 上

I want to change storage location for TestResults.zip file from above given URL to my own defined repository location.(Like: Myproject/target/surefire-reports.zip) How to do that?我想将 TestResults.zip 文件的存储位置从上面给定的 URL 更改为我自己定义的存储库位置。(例如:Myproject/target/surefire-reports.zip)该怎么做?

Because in my azure pipeline the test are running and when it comes to create a zip for TestResults it's storing in given above URL and i want to store in one of my project sub-module under target directory so that i can create a zip file.因为在我的 azure 管道中,测试正在运行,当它为 TestResults 创建一个 zip 时,它存储在上面给出的 URL 中,我想存储在目标目录下的我的项目子模块之一中,以便我可以创建一个 zip 文件。

Please help me to resolve this issue.请帮我解决这个问题。

Many Thanks非常感谢

How to modify the repository / storage location for Test Results in azure pipeline如何修改 azure 管道中测试结果的存储库/存储位置

It is not recommended to publish the test results to the repo.不建议将测试结果发布到 repo。

If you still want do that, you could use git command line to submit the test file to the repo in the pipeline after the test task, like:如果您仍然想这样做,可以在测试任务后使用 git 命令行将测试文件提交到管道中的 repo,例如:

cd $(System.DefaultWorkingDirectory)

copy Path\surefire-reports.zip target

cd target

git add surefire-reports.zip

git commit -m "Add a test file"

git push https://PATn@dev.azure.com/YourOrganization/YourProject/_git/xxx.test HEAD:master

You could check the similar thread for some more details.您可以查看类似的线程以获取更多详细信息。

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

相关问题 如何从管道 Azure Devops 访问私有存储库? - How to access a private repository from a pipeline Azure Devops? 如何模拟 Azure 单元测试的队列存储? - How to mock Azure Queue storage for unit test? ARM 测试的 TTK 抛出错误:在 Azure DevOps 管道中不应硬编码位置 - ARM TTK throwing error for the test : Location Should Not Be Hardcoded in Azure DevOps Pipeline 管理每个管道 terraform state 和 Azure 存储容器的有效方法 - Efficient way to manage terraform state with Azure storage contianer per pipeline 在 Azure 测试结果中显示完整的测试用例 - Display full test case in Azure test results Azure 管道 - 在不提交存储库的情况下发布 Maven 工件 - Azure Pipeline - Publish Maven Artifacts Without Comitting to Repository 在发布管道中执行阶段时触发不同的存储库 - Azure DevOps - Trigger different repository when execute stage in a release pipeline - Azure DevOps Azure DevOps 管道中的 AzureCLI 任务找不到脚本的位置 - AzureCLI task in Azure DevOps pipeline cannot find the location of scripts 如何负载测试异步管道? - How to load test an asynchronous pipeline? 如何暂停 azure 管道执行几秒钟? - How to pause azure pipeline execution for several seconds?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM