TheI use Jenkins for compilations with CMake and Visual Studio. Recently we upgrade Visual Studio Compiler to 2017 to support C++17.
Before this upgrade to can run CMake, we use a Microsoft .bat to initilialize compiler environement. Now that we have upgrade our Microsoft Compiler, we tried to do the same with the following command in a pipeline "bat script:" step:
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat
And the following output appears:
D:\JENKINS\workspace\Tests\msvc_test\build>call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat" \Java\jre1.8.0_141\bin"" ‚tait inattendu. Build step 'Exécuter une ligne de commande batch Windows' marked build as failure Finished: FAILURE
The previous .batch works perfectly
Is there something that I can attempt ? I've upgrade my jenkins, all plugins but nothing changes. This problem is the same even I use pipeline or not (freestyle projects...)