You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It doesn't seem to work, as I end up getting like this:
##[Error 1]
No agent found in pool mgmt-aks-sandbox which satisfies the specified demands:
agent.name -equals $(projectName)-$(Build.BuildId)
java
Agent.Version -gtVersion 2.140.2
I've also tried with parameters and template expressions, and those don't work either:
##[Error 1]
No agent found in pool mgmt-aks-sandbox which satisfies the specified demands:
agent.name -equals ${{ parameters.agentName }}
java
Agent.Version -gtVersion 2.140.2
Ah, this is due to nested variable resolution; or the lack thereof. Agent name won't resolve to the value you think it is, in the original it will end up as $(projectName)-$(Build.BuildId)
This still helped me, thank you for raising this issue!
In order to consolidate to fewer feedback channels, we've moved suggestions and issue reporting to Developer Community. Sorry for any confusion resulting from this move.
Is it possible to use a variable or parameters in agent pool demands? Something like this:
It doesn't seem to work, as I end up getting like this:
I've also tried with parameters and template expressions, and those don't work either:
It looks like this guy managed to do it via the UI (see comments at the end), but is there a way to do it in YAML?
https://www.noelbundick.com/posts/serverless-vsts-build-agents-with-azure-container-instances/
The text was updated successfully, but these errors were encountered: