When running a Visual Studio job from a declarative script on a Windows agent I see:
E:\jenkins\workspace\CMake_tests_1_Windows_trunk>call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
\Java\jre1.8.0_241\bin"" was unexpected at this time.
I want to check the value of JAVA_HOME. Where is that set for a Windows agent?