WoodpeckerCICommands.

SetEnvironmentVariable(string, string) Method

Summary

Sets an environment variable that will be available to subsequent steps.

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