1. Download the installation file, jenkins-ci.org
2. Run and installProgramNote that the installation path is recommended to be installed on a non-system disk. After installation, a Jenkins service is generated in the service. Be sure to set the Administrator identity for this service.
3. Install the Jenkins Active Directory plugin plug-in to integrate domain identity authentication.
4. Install the role-based authorization strategy plug-in to precisely manage job permissions.
5. Install the Jenkins msbuild plugin plug-in for compiling.. Net project. Pay attention to the support of the Framework. After installation, add the msbuild version to "System Management-system settings, after adding the image, select build a Visual Studio project or solution using msbuild in the "Build-add Build Steps" drop-down box of the job, and select the added msbuild version.
6. In "System Management-system settings", change the SVN version to 1.6.
7. Create a job, set the svn address, and click "Apply" at the bottom of the page. The system prompts that SVN authentication is required. Set the authentication information as prompted.
8. In the system with vsinstalled, find the file microsoft.webapplication.tar gets, create the same folder on the Jenkins server, and copy the file. C: \ Program Files (x86) \ msbuild \ Microsoft \ visualstudio \ v10.0 \ webapplications \ microsoft.webapplication.tar gets
9. Now you can compile your Asp.net project in Jenkins.
Several plug-ins are recommended:
Violations for staticCodeCheck fxcop, stylecop, gendarme, etc.
Sonar for integration with sonar
To integrate with sonar, you must first download the latest version of sonar and decompress the package to your local computer. Install 1.6jvm.
In Sonar/bin/, enter your server version and run sonarstart.
Sonar needs to optimize tomcat configuration when running tomcat. Modify the tomcat configuration in the server. xml file to the following (modify the port by yourself ):
< Connector Port = "8080" Maxhttpheadersize = "8192" Usebodyencodingforuri = "True" Maxthreads = "1000" Minsparethreads = "25" Maxsparethreads = "75" Enablelookups = "False" Redirectport = "8443" Acceptcount = "100" Compression = "On" Compressionminsize = "2048" Compressablemimetype = "Text/html, text/XML, text/JavaScript, text/CSS, text/plain" Connectiontimeout = "20000" Disableuploadtimeout = "True" Uriencoding = "UTF-8" />