This example is built under the Windows operating system, provided the. NET Framework is installed.
1. Download Jenkins's Windows installation package from https://jenkins.io/download/ .
2. After installing the browser access http://localhost:8080 .
3. Configure the compile and test plug-ins by clicking on the management plug-in, Jenkins---admin plugin to open the following page under the Optional Plugins tab, select:
Then click Install directly.
4. Configure the path to MSBuild and locate the MSBuild configuration section by clicking on the global Tools configuration, Jenkins, System Management:
Enter the installation path for MSBuild on the server, such as: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe
Click Save to finish.
If visual Studio is not installed on the compiled machine, a MSB4019 error may be raised during compilation:
error msb4019:the imported Project "C:\Program Files (x86) \msbuild\microsoft\visualstudio\v11.0\webapplications\ Microsoft.WebApplication.targets " was not found. Confirm the path in the <Import> declaration is correct, and that the file exists on disk.
In this case, you can copy the C:\Program Files (x86) \msbuild folder on the development machine to the compiler.
Keep Learning and growing. *** *****************************
Built with "Jenkins". NET automated compilation test and release environment