[英]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.