Skip to main content

Module buildagent

Module buildagent 

Source
Expand description

Build agent (CI) integrations.

Ports each agent from the original GitVersion.BuildAgents. Detects the current CI from environment variables and outputs variables / build numbers in the format expected by that CI. When update_build_number is false the build-number line is omitted (mirrors the original BuildAgentBase.WriteIntegration behaviour).

Traits§

BuildAgent
Common interface for build agents.

Functions§

by_name
Instantiate an agent by name (matching the original GetType().Name). Used for tests and explicit selection.
detect
Detect the current build agent from environment variables. Order follows the original registration order.