【发布时间】:2019-10-07 15:29:20
【问题描述】:
我正在尝试在 Azure DevOps 中构建基于 python 的工件。 我正在研究 Windows 代理。 这是我的代码结构:
+-- Dir1
+----Version1
+------Build
+--------build.yaml
+------Script
+--------test_file.py
+--------file.py
+------Docs
在构建管道期间,我尝试运行如下命令:
python $(System.DefaultWorkingDirectory)\Dir1\Version1\Script\test_**
我收到错误:
python: can't open file 'd:\a\1\s\Dir1\Version1\Script\test_**': [Errno 22] Invalid argument
当我直接引用文件时,它正在工作。 有谁知道为什么这些星号/通配符不能正常工作?
【问题讨论】:
-
为什么要用星号?
-
我认为它像通配符一样工作?
-
因为 shell 不能那样工作?如果您想要某种通配符,则需要在 python 代码中执行此操作
标签: azure azure-devops azure-pipelines