flcdrg / au-packages

David's Chocolatey Automatic Packages
MIT License
18 stars 53 forks source link

Can azure-pipelines-agent install multiple agents on the same windows server? #125

Closed andrew-sumner closed 2 years ago

andrew-sumner commented 2 years ago

I believe the answer is no due to chocolatey not allowing multiple packages with the same version (see https://github.com/chocolatey/choco/issues/1022), however I thought I'd check in to see if there is a work around.

flcdrg commented 2 years ago

Not with the current package.

It might be possible to update the chocolateyInstall.ps1 script to handle this. Maybe it could create n instances of the agent given an extra parameter.

If you're interested then feel free to create a PR.

andrew-sumner commented 2 years ago

I've gave up on that and instead delete 'C:\ProgramData\chocolatey\lib\azure-pipelines-agent.{{ az_devops_agent_version }}' on target server before deploying next package. Dirty but works.