Skip to content

Commit c485e88

Browse files
committed
Update BuildServerDetector.cs
1 parent 2e7f64b commit c485e88

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/DiffEngine/BuildServerDetector.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,7 @@ static BuildServerDetector()
4848
// Variable name is 'Agent.Id' to detect if this is a Azure Pipelines agent.
4949
// Note that variables are upper-cased and '.' is replaced with '_' on Azure Pipelines.
5050
// 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");
51+
IsAzureDevops = ValueEquals(variables, "TF_BUILD", "True");
6152

6253
Detected = IsTravis ||
6354
IsJenkins ||

0 commit comments

Comments
 (0)