azure-devops - 在 Azure Devops 上附加到 PATH?
问题描述
我需要附加到 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.
我需要做什么才能设置它?
解决方案
推荐阅读
- c# - 此解析操作已结束。Autofac、Automapper 和 IMemberValueResolver
- python - 使用 anaconda 在随机森林中进行交叉验证
- angular - 使用 NGXS 订阅操作流的更简洁方式
- javascript - Jquery自动完成不显示自动完成下拉菜单?
- c# - 列表、字符串拆分选项和逻辑
- java - 使用 CascadeType 进行复制
- javascript - Nestjs验证器构造函数参数错误
- selenium - 如何在以下 URL 上使用 Selenium webdriver 选择日期
- c++ - EEPROM ESP8266 - 倒问号
- git - 如何 git 还原一个特定文件的更改,而我的提交更改也涉及其他文件?