3. Environment Variables¶
3.1. Environment Variables in Spec¶
Environment variables can be used in the following spec options:
Environment variables in
experiment_default.envsCommands in
experiment_default.commandsPaths in
experiment_default.write_outputsEnvironment variables in
experiments[].envsCommands in
experiments[].commandsPaths in
experiments[].write_outputsPath in
server_default.private_key_pathValue in
server_default.usernameValue in
server_default.hostnamePath in
server[].private_key_pathValue in
server[].usernameValue in
server[].hostnameCommands in
requirements.<requirement_id>Path in
write_status_to
3.2. Extra Environment Variables¶
Noodles also provides some extra environment variables when executing the commands:
NOODLES_EXPERIMENT_NAME(The current experiment name)NOODLES_SERVER_NAME(The current server name of the satisfied server)NOODLES_SERVER_PORT(The port to connect to the satisfied server)NOODLES_SERVER_USERNAME(The username of the satisfied server)NOODLES_SERVER_HOSTNAME(The hostname of the satisfied server)NOODLES_SERVER_AUTHORITY(Username and hostname of the satisfied server, in the form of<username>@<hostname>)