Setting up a Pipeline build in Jenkins (Jenkins 2.6), copying the sample script for a git-based build gives: \"no tool named MSBuild found\". I have set MSBuild Tool in Ma
Ma
We have to define msbuild which is installed in Global Tool Configuration in script block
msbuild
stage('App_Build'){ steps{ tool name: 'MsBuild', type: 'msbuild' bat "\"${tool 'MsBuild'}\"My.Service.sln /t:Rebuild /p:Configuration=Release" } }
This will work