We provide lots of tools on our agents, but some of those tools require specific environment variables to be set.
e.g.
we have multiple node versions installed. Each of those node versions provide access to some tools like bower.
To expose bower we specify a capability like this:
system.builder.command.bower-8.9.4=/home/bamboouser/.nvm/versions/node/v8.9.4/bin/bower
But in order to make it work for the user i would have to expose a specific PATH like
PATH=/home/bamboouser/.nvm/versions/node/v8.9.4/bin:.....
is it possible to preconfigure such an environment for a given custom command capability?
Thanks in advance,
Korbinian