-
Bug
-
Resolution: Won't Fix
-
Minor
-
None
I'm trying to run a mutibranch pipeline on a windows slave and my checkout is failing because its trying to use the linux git path.
Running on WIN2016 in c:\jenkins\workspace_CI_feature_NugetVersioning-BTRJQS36ENOFXORARHMWLBJHIGYW6USUC467IGUVHWZ62OIYXLXQ [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout Cloning the remote Git repository Cloning repository git@github.com:WorldVenturesHoldings/Fortius.Framework.git > /usr/bin/git init c:\jenkins\workspace_CI_feature_NugetVersioning-BTRJQS36ENOFXORARHMWLBJHIGYW6USUC467IGUVHWZ62OIYXLXQ # timeout=10
Pipeline Script
pipeline { agent { label 'dotnet2016' } stages { stage('Checkout code') { steps { checkout([ $class: 'GitSCM', branches: [[name: '**']], doGenerateSubmoduleConfigurations: false, extensions: [], gitTool: 'Windows_Git', submoduleCfg: [] ]) } } stage('Build') { steps { bat '%Nuget% locals all -clear' bat '%Nuget% restore %Solution% -nocache -source https://nuget.org/api/v2' bat '%MSBuildExe% %Solution%' } } stage('Unit Tests') { steps { bat '%NUnitExe% %TestProj% --result %NunitResult%' } } } post { always { deleteDir() } } }