title: How to get GitVersion working in Jenkins
body: <p>We are using jenkins pipeline (blue ocean) to build our project.</p>
  
  <p>How can we get gitversion working in jenkinsfile?</p>
  
  <p>When trying gitversion.exe /output buildserver:
  C:\jenkins\workspace\mastere809bb9e>buildtools\GitVersion\tools\GitVersion.exe /output buildserver </p>
  
  <p>INFO [01/18/18 8:17:27:73] Working directory: C:\jenkins\workspace\mastere809bb9e</p>
  
  <p>INFO [01/18/18 8:17:27:75] Applicable build agent found: 'Jenkins'.</p>
  
  <p>INFO [01/18/18 8:17:27:75] Branch from build environment: </p>
  
  <p>ERROR [01/18/18 8:17:27:82] An unexpected error occurred:</p>
  
  <p>System.ArgumentNullException: Der Wert darf nicht NULL sein.</p>
  
  <p>Parametername: path</p>
  
  <p>bei LibGit2Sharp.Core.Ensure.ArgumentNotNull(Object argumentValue, String argumentName)</p>
  
  <p>bei LibGit2Sharp.Core.Ensure.ArgumentNotNullOrEmptyString(String argumentValue, String argumentName)</p>
  
  <p>bei LibGit2Sharp.Repository..ctor(String path, RepositoryOptions options)</p>
  
  <p>bei GitVersion.GitHelper.NormalizeGitDirectory(String gitDirectory, Authentication authentication, Boolean noFetch, String currentBranch)</p>
  
  <p>bei GitVersion.GitPreparer.Initialise(Boolean normaliseGitDirectory, String currentBranch)</p>
  
  <p>bei GitVersion.ExecuteCore.ExecuteGitVersion(IFileSystem fileSystem, String targetUrl, String dynamicRepositoryLocation, Authentication authentication, String targetBranch, Boolean noFetch, String workingDirectory, String commitId)</p>
  
  <p>bei GitVersion.SpecifiedArgumentRunner.Run(Arguments arguments, IFileSystem fileSystem)</p>
  
  <p>bei GitVersion.Program.VerifyArgumentsAndRun()</p>
  
  <p>INFO [01/18/18 8:17:27:82] </p>
  
  <p>INFO [01/18/18 8:17:27:82] Here is the current git graph (please include in issue): </p>
  
  <p>INFO [01/18/18 8:17:27:82] Showing max of 100 commits</p>
  
  <p>INFO [01/18/18 8:17:27:90] ERROR: fatal: Not a git repository (or any of the parent directories): .git</p>