【发布时间】:2020-08-19 15:11:59
【问题描述】:
我有一个在 Azure DevOps 管道的 Windows 映像中运行的命令行任务。 执行 pmd.bat 命令后执行此任务并退出代码 4。因为这在我的本地 CMD 中运行得非常好。
task: CmdLine@2
inputs:
script: |
echo starting execution
cd $(Build.SourcesDirectory)
xcopy *.jar $(Build.SourcesDirectory)\code\
cd $(Build.SourcesDirectory)\pmd-bin-6.24.0\bin
pmd.bat -d "$(Build.SourcesDirectory)\code\src\apexcode.cls" -f xml -R "$(Build.SourcesDirectory)\code\build\MyApexRule.xml" -reportfile pmd.xml
谁能帮我解决这个问题?
【问题讨论】:
标签: cmd azure-devops pmd