Teamcity - Env Variables Created using Nodejs step Not available in next step (nodejs/commandline)

Hi,

I am using nodejs build step to create enviornment variables (on linux agent) using process.env["something"] = "somethingelse". After creation if I echo the variables, i can see the values but as soon as I go in next build step all the env variables created go away. How can I fix this issue? I am using team city 10. I can not use the env variables functioanlity provided as part of parameters so that is why need to go via this route. Any help will be really appreciated.

0
1 comment

Hi,

Do you mean that you cannot add new environment variables to the build configuration settings?

You can still add them via teamcity service messages: write ##teamcity[setParameter name='env.something' value='somethingelse'] to the stdout during the build and the parameter will be created only for the running build. 

0

Please sign in to leave a comment.