Jenkins Class

Namespace
GitVersion.BuildAgents
Interfaces
Base Types
graph BT Type-->Base0["BuildAgentBase"] click Base0 "/api/GitVersion.BuildAgents/BuildAgentBase" Base0-->Base1["object"] Type-.->Interface0["ICurrentBuildAgent"] click Interface0 "/api/GitVersion.BuildAgents/ICurrentBuildAgent" Type-.->Interface1["IBuildAgent"] click Interface1 "/api/GitVersion.BuildAgents/IBuildAgent" Type["Jenkins"] class Type type-node

Syntax

public class Jenkins : BuildAgentBase, ICurrentBuildAgent, IBuildAgent

Constructors

Fields

Name Constant Value Summary
EnvironmentVariableName JENKINS_URL
static
Log
Inherited from BuildAgentBase

Properties

Name Value Summary
Environment IEnvironment
Inherited from BuildAgentBase
EnvironmentVariable string

Methods

Name Value Summary
CanApplyToCurrentContext() bool
Inherited from BuildAgentBase
GenerateBuildLogOutput(VersionVariables) IEnumerable<string>
Inherited from BuildAgentBase
GenerateSetParameterMessage(string, string) string[]
GenerateSetVersionMessage(VersionVariables) string
GetCurrentBranch(bool) string
PreventFetch() bool
ShouldCleanUpRemotes() bool
When Jenkins uses pipeline-as-code, it creates two remotes: "origin" and "origin1". This should be cleaned up, so that normalizing the Git repo will not fail.
WithPropertyFile(string) void
WriteIntegration(Action<string>, VersionVariables, bool) void

Extension Methods

Name Value Summary
GetProperties() IEnumerable<KeyValuePair<string, string>>
NotNull<Jenkins>(string) T
GitHub