I'm trying to set a build pipeline to run on a specific agent pool. At the moment it insists on working on the "Azure Pipelines" pool:
However I'm not able to change the build pipeline's agent pool (at least I'm not sure how).
My YAML looks like this:
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
variables:
buildConfiguration: 'Release'
steps:
- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: '**/*.sln'
feedsToUse: 'select'
- script: dotnet build --configuration $(buildConfiguration)
displayName: 'dotnet build $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'Pack the package'
inputs:
command: 'pack'
configuration: 'Release'
packagesToPack: 'NugetComponents/**/*.csproj'
nobuild: true
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'
I'm not sure if I need to change anything here. I can't find anything in the interface for configuring which agent bool a pipeline should use?