Use Jenkins to compile Asp.net

Source: Internet
Author: User

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"  />   

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.