We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e7f64b commit c485e88Copy full SHA for c485e88
src/DiffEngine/BuildServerDetector.cs
@@ -48,16 +48,7 @@ static BuildServerDetector()
48
// Variable name is 'Agent.Id' to detect if this is a Azure Pipelines agent.
49
// Note that variables are upper-cased and '.' is replaced with '_' on Azure Pipelines.
50
// https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch#access-variables-through-the-environment
51
- IsAzureDevops = !IsTravis &&
52
- !IsJenkins &&
53
- !IsGithubAction &&
54
- !IsTeamCity &&
55
- !IsGitLab &&
56
- !IsMyGet &&
57
- !IsGoDc &&
58
- !IsDocker &&
59
- !IsAppVeyor &&
60
- variables.Contains("AGENT_ID");
+ IsAzureDevops = ValueEquals(variables, "TF_BUILD", "True");
61
62
Detected = IsTravis ||
63
IsJenkins ||
0 commit comments