Summary
Sets an environment variable that will be available to subsequent steps.
- Namespace
- Cake
.Common .Build .WoodpeckerCI .Commands - Containing Type
- WoodpeckerCICommands
Syntax
public void SetEnvironmentVariable(string name, string value)
Examples
if (BuildSystem.WoodpeckerCI.IsRunningOnWoodpeckerCI)
{
WoodpeckerCI.Commands.SetEnvironmentVariable("MY_VAR", "my_value");
}
Parameters
Name | Type | Description |
---|---|---|
name | string | The environment variable name. |
value | string | The environment variable value. |
Return Value
Type | Description |
---|---|
void |