我注意到 yaml 没有显式的签出步骤,并且某些文件被挂起的 testhost 进程锁定,导致失败。
我可以添加以下内容
- task: CmdLine@2
inputs:
script: 'wmic process where name="testhost.exe" call terminate'
condition: always()
Run Code Online (Sandbox Code Playgroud)
到管道运行结束。
想知道是否有办法让它在 git checkout 之前运行。结帐不是 YAML 的一部分。
- checkout: self在脚本后面添加就可以了。
[...]
steps:
- task: CmdLine@2
inputs:
script: 'wmic process where name="testhost.exe" call terminate'
condition: always()
- checkout: self
[...]
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
799 次 |
| 最近记录: |