To build the solution using Jenkins, the physical path of "MSBuild.exe" & ".sln" file has been configured correctly.
All the projects built successfully except MSTEST project.
The reason behind this is 'the MSTEST project needs Visual-Studio to be installed'. Now, either I need to find a way to build the MSTEST project without installing Visual-Studio, OR I need to exclude the MSTEST project while configuring 'Jenkins job' as it needs Visual-Studio to be installed.
Kindly advise.
By default your project has a Release and a Debug configuration. (See Understanding Build Configurations). You can add a new configuration and Call it
ReleaseNoMstest. Copy the settings from the Release configuration, and then exclude the MsTest project. (See also How to: Exclude Projects from a Build). Finally, in jenkins select the ReleaseNoMstest for building.