Skip to content

Commit bef053c

Browse files
authored
Added build server detection for Atlassian Bamboo. (#69)
1 parent feb6d4c commit bef053c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

readme.source.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ Supports:
6868
* [TeamCity](https://www.jetbrains.com/help/teamcity/predefined-build-parameters.html#PredefinedBuildParameters-ServerBuildProperties)
6969
* [MyGet](https://docs.myget.org/docs/reference/build-services#Available_Environment_Variables)
7070
* [GitLab](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html)
71+
* [Bamboo](https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html)
7172

7273

7374
## Disable for a machine/process

src/DiffEngine/BuildServerDetector.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ static BuildServerDetector()
6666
Detected = true;
6767
return;
6868
}
69+
70+
// Bamboo
71+
// https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html
72+
// Variable name is 'bamboo.buildKey' but must be referenced with an underscore
73+
if (Environment.GetEnvironmentVariable("bamboo_buildKey") != null)
74+
{
75+
Detected = true;
76+
return;
77+
}
6978
}
7079

7180
public static bool Detected { get; set; }

0 commit comments

Comments
 (0)