【问题标题】:Where is $(System.DefaultWorkingDirectory) in Azure DevOps PipelineAzure DevOps Pipeline 中的 $(System.DefaultWorkingDirectory) 在哪里
【发布时间】:2019-03-15 19:12:18
【问题描述】:

我正在尝试在 Azure DevOps 管道中发布 junit.xml 测试结果,但任务没有找到它。

路径来自 $(System.DefaultWorkingDirectory)

运行npm test 任务后生成的junit.xml

【问题讨论】:

    标签: visual-studio npm azure-devops azure-pipelines


    【解决方案1】:

    您可以使用此 glob 模式扫描所有文件夹:**/junit.xml

    也就是说System.DefaultWorkingDirectory 是代理上下载源代码文件的本地路径。所以,回购的根,有效。

    【讨论】:

    • 通常大约一个小时后,我在答案之前就弄清楚了:$(System.DefaultWorkingDirectory)/InspectionWeb/ClientApp/src
    • 也感谢 glob 模式 :)
    猜你喜欢
    • 2020-04-30
    • 2017-02-15
    • 2022-08-10
    • 2021-09-10
    • 1970-01-01
    • 2022-12-01
    • 2020-02-02
    • 1970-01-01
    • 2020-02-22
    相关资源
    最近更新 更多