Azure devops Azure Devops-是否有方法在签出前执行taskkill
我注意到yaml没有显式的签出步骤,我们的一些文件被挂起的testhost进程锁定,因此出现了故障 我可以补充以下几点Azure devops Azure Devops-是否有方法在签出前执行taskkill,azure-devops,Azure Devops,我注意到yaml没有显式的签出步骤,我们的一些文件被挂起的testhost进程锁定,因此出现了故障 我可以补充以下几点 - task: CmdLine@2 inputs: script: 'wmic process where name="testhost.exe" call terminate' condition: always() 然后结束管道运行 想知道是否有办法让它在git签出之前运行。签出不是YAML的一部分。在脚本之后添加-ch
- task: CmdLine@2
inputs:
script: 'wmic process where name="testhost.exe" call terminate'
condition: always()
然后结束管道运行
想知道是否有办法让它在git签出之前运行。签出不是YAML的一部分。在脚本之后添加
-checkout:self
,就可以完成这个任务了
[...]
steps:
- task: CmdLine@2
inputs:
script: 'wmic process where name="testhost.exe" call terminate'
condition: always()
- checkout: self
[...]