如何将Powershell脚本文件路径从azure devops存储库传递到Azure devops构建管道

时间:2019-10-16 03:32:27

标签: azure powershell azure-devops

我一直在关注该文章以学习Azure Devops。但是,我无法获取Powershell脚本的文件路径,以将其传递到azure devops构建管道中。

https://docs.microsoft.com/en-in/azure/devops/pipelines/create-first-pipeline?view=azure-devops

下面是我在Azure Repo中的脚本

enter image description here

下面是我的Azure devops构建管道,我想在其中添加PowerShell脚本文件路径:

enter image description here

第二个图像中的“ ScriptPath”没有浏览选项,因此我无法获取正确的路径。

请帮助我。

2 个答案:

答案 0 :(得分:1)

'./ HelloWorld.ps1',我必须将此格式用作文件路径。

答案 1 :(得分:0)

看起来像Azure Devops每天都在改进其用户界面。浏览椭圆按钮至少显示在我的管道中,以编辑Powershell脚本的正确相对路径。

Azure Devops - Piplines - Browse button