在Azure DevOps Pipelines中,如何检查代理的目录结构? [英] In Azure DevOps Pipelines, how can I examine the directory structure of an agent?

查看:100
本文介绍了在Azure DevOps Pipelines中,如何检查代理的目录结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图创建一个任务以在构建后运行单元测试,但是我不知道要为测试文件"字段输入什么.如果可以获取代理的目录列表,这样我可以看到测试DLL的位置,那将是很好的.有什么办法吗?

I'm trying to create a task to run unit tests after a build, but I can't figure out what to enter for the "Test files" field. It would be nice if I could get a directory listing of the agent so I can see where the test DLL is. Is there any way to do this?

谢谢! :)

推荐答案

您不能真正做到这一点,它有第三方扩展名,但是插入步骤很容易:

you cant really do that native, there was an third party extension for that, but tbh its easier to just insert a step that does:

ls -Rla

并检查输出

这篇关于在Azure DevOps Pipelines中,如何检查代理的目录结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆