Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inject agent system capabilities as environment variables for tasks to use #151

Closed
gravufo opened this issue May 11, 2016 · 1 comment
Closed

Comments

@gravufo
Copy link

gravufo commented May 11, 2016

Hi,

It would be very useful to be able to access system capabilities as variables inside tasks.

That way, I could simply lookup the variable "MSBuild" using tl.getVariable("MSBuild) and get the path to msbuild.exe without having to either hard code it or insert it in the PATH.

This was expected to work that way, but I was disappointed to learn that it only works for build definitions' demands.

Thanks

@bryanmacfarlane
Copy link
Collaborator

We are going to round out the concepts of capabilities with tools - both scanning and acquiring. Including pulling dynamically if supported.

https://github.com/Microsoft/vsts-tasks/blob/master/docs/tools.md

That's future work. For right now, capabilties are simply used to meet demands for agent selection

prebansa pushed a commit to prebansa/azure-pipelines-agent that referenced this issue Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants