【发布时间】:2019-07-29 15:51:37
【问题描述】:
我需要附加到 Azure Devops 管道上的 PATH 环境变量。我曾尝试运行脚本来执行此操作,但它不起作用:
- script: |
echo '##vso[task.setvariable variable=PATH]${PATH}:some/path/'
这无法设置路径,并且还会导致后续脚本失败,并显示以下内容:
##[error]Unable to locate executable file: 'bash'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
我需要做什么才能设置它?
【问题讨论】:
标签: azure-devops continuous-integration azure-pipelines-build-task