anchor.diff:  ﻿[<AutoOpen>]
  +/// Contains functions which allow build scripts to interact with a build server.
   module Fake.BuildServerHelper
   
   /// The BuildServer type.
  
positive.code: /// Trace verbose output
  let mutable verbose = hasBuildParam "verbose"
  
  /// A constant for local builds            
  let localBuildLabel = "LocalBuild"
  
  /// Definces the XML output file
  /// Used for BuildServers like CruiseControl.NET
  let mutable xmlOutputFile = getBuildParamOrDefault "logfile" "./output/Results.xml"
  
  /// Build number retrieved from TeamCity
  
negative.code: let ccBuildLabel = environVar "CCNETLABEL"
  
  /// Determines the current BuildVersion and if it is a local build
  let buildVersion,buildServer =
      let getVersion = getBuildParamOrDefault "buildVersion"
      if hasBuildParam "jenkins_home" then getVersion jenkinsBuildNumber,Jenkins else
      if not (isNullOrEmpty tcBuildNumber) then getVersion tcBuildNumber,TeamCity else
  