Azure DevOps Hosted Agents - Add Tool (PS Module) to agent

后端 未结 1 594
不思量自难忘°
不思量自难忘° 2021-01-27 01:24

I am wondering if there is an easy way to incorporate an extra tool to one of the default Microsoft hosted agent pools (specifically VS2017). Basically, I want to add some of th

相关标签:
1条回答
  • 2021-01-27 02:09

    For PowerShell modules, you can just use Install-Module in an inline script (or at the start of your existing scripts) to ensure they're installed. That, of course, assumes the modules are in the PowerShell Gallery.

    Worst case, just put the modules you need in source control and publish them as an artifact along with everything else so you can load them up.

    0 讨论(0)
提交回复
热议问题