I am trying to run a build on TFS. One of the steps is setting an environment variable. This step, a Shell Script
, fails on the following script:
export NODE_CONFIG_DIR= node_modules/test-automation-common/config
with a working directory of $(build.SourcesDirectory)/specmapper
.
I am part of team that uses a shared private agent on a local Macbook Pro. I'm not sure of the exact OS it is running, but I know it's only a year or two old.
I'm trying to figure out how to set an environment variable on this machine. The machine is setup with a bash environment so the following should work:
- export VARNAME=stringofthingyouwant
Due to a diligence of security, I cannot remote into the machine. I have been assured that export should be setup.
I am trying to run automated tests using Protractor and I need to setup a config directory variable that is not available until after npm install
has been run, so I cannot use the export section in the 'runsvc.sh' as recommended here.
Edit: I was previously trying to use the command line step on a mac, which was now obviously not going to work. I mistook command line == terminal. I now have a Shell Script
as noted above.
I am trying to run a build on TFS. One of the steps is setting an environment variable. This step (command line) fails with the message:
Failed which: Not found export: null
undefined failed with error: Failed which: Not found export: null