buildServerInfoGatherer = new ChainingBuildServerGatherer(new
AtlassianBambooBuildInfoGatherer(bambooBuildKey, bambooBuildNumber, bambooBuildTimeStamp));
} else {
try {
Properties envVars = CommandLineUtils.getSystemEnvVars();
JenkinsBuildInfoGatherer jenkins = new JenkinsBuildInfoGatherer(envVars);
TeamCityBuildInfoGatherer teamCity = new TeamCityBuildInfoGatherer(envVars);
if(jenkins.isJenkinsInUse())
{
buildServerInfoGatherer = new ChainingBuildServerGatherer(jenkins);
}else if(teamCity.isTeamCityInUse()){
buildServerInfoGatherer = new ChainingBuildServerGatherer(teamCity);
}else{