当扫描一个简单的键时,找不到预期的':'。 azure-pipeline中的语法错误。 我正在试图执行Azure管道。执行正常。但是,当我添加一个任务以有条件地检查pom.xml文件时,我只需要执行该特定任务,但是失败了 E ...

问题描述 投票:0回答:1

eRror

enter image description here

您的脚本需要更加缩进:enter image description here - bash: | if [ -f Maven pom.xml ]; then echo "##vso[task.setVariable variable=FILEEXISTS]true" fi - task: Maven@3 etc

azure azure-devops azure-pipelines azure-aks azure-pipelines-yaml
1个回答
12
投票
Https://stackoverflow.com/a/58555822/174843

	

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.