简体   繁体   English

无法在 Azure devops 管道中发布 Cucumber 报告

[英]Not able to publish Cucumber report in Azure devops pipeline

Getting below error in pipeline在管道中获得以下错误

(Artifact name input: Test Run Report ##[error]Path does not exist: D:\a\1\s\cypress\reports) (工件名称输入:测试运行报告##[错误]路径不存在:D:\a\1\s\cypress\reports)

Assuming you are facing the issue while in Publishing artifact by using in different tasks.假设您在通过在不同任务中使用来发布工件时遇到问题。

Please follow the steps to fix the issue请按照步骤解决问题

you can download artifacts from earlier stages in your pipeline or from another pipeline.您可以从管道中的早期阶段或从另一个管道下载工件。 You can also publish your artifact to a file share or make it available as a pipeline artifact.您还可以将工件发布到文件共享或使其作为管道工件可用。

steps:脚步:

- publish:  $(System.DefaultWorkingDirectory)/bin/WebApp
    artifact:  WebApptest

If you trying to consume the artifact from a job running on a different OS, you must ensure all the file paths are valid for the target environment.如果您尝试使用在不同操作系统上运行的作业中的工件,则必须确保所有文件路径对目标环境有效。 For example, a file name containing the character \ or * will fail to download on Windows.例如,包含字符\*的文件名将无法在 Windows 上下载。

The path of the file/folder to you want to publish is required.您要发布的文件/文件夹的路径是必需的。 This can be an absolute or a relative path to $(System.DefaultWorkingDirectory) .这可以是$(System.DefaultWorkingDirectory)的绝对路径或相对路径。

Download artifacts下载工件

steps:
    - download:  current
    artifact:  WebApptest

Refer here Link 1 & Link 2请参阅此处链接 1链接 2

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

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