cmake in windows PowerShell
cmake --build . --config Debug -- /m:$env:NUMBER_OF_PROCESSORS
but Jenkinsfile in cmd,so
bat 'cd build && cmake .. -G "Visual Studio 16 2019"'
bat 'cd build && cmake --build . --config Debug -- /m:%NUMBER_OF_PROCESSORS%'
or msbuild
bat '"C:vs\msbuild /p:Configuration=Debug /p:Platform=x64 /m /v:m build\\master.sln'