我目前的 yml 有问题,由于我是这个 CI/CD 模型的新手,我需要你的帮助。
这是我的 yml 文件:
stages:
- build
job:
stage: build
tags:
- ci
script:
- echo "Restoring NuGet Packages..."
- 'c:\nuget\nuget.exe restore "ProjectName.sln"'
- ''
- echo "Release build..."
- cd AutomationTests/bin/Debug/net5.0
- '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" "ProjecName.dll"'
except:
- tags
当我尝试构建管道时,它显示以下错误:
在 C:\Windows\TEMP\build_script739986119\script.ps1:249 字符:134 ... E\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" "ProjectName.dll"
表达式或语句中出现意外标记“ProjectName.dll”。
如果我在 CMD 中运行完全相同的代码,它会完美运行。
我做错了什么?
谢谢。