Use jenkins to configure the. net mvc website for continuous integration 2. jenkinsmvc

Source: Internet
Author: User

Use jenkins to configure the. net mvc website for continuous integration 2. jenkinsmvc

In the previous article, we used jenkins to configure the. net mvc website for continuous integration. I briefly introduced jenkins to build a site to a local server. This article explains how to deploy the site to a specified server.

1. Remote Configuration publishing for IIS

1. Install "Management Service" in the Server Manager (if it already exists, you do not need to install it again)

1.1 Server Management -----> role -----> web Server IIS

1.2 click "add role service" in the lower right corner. The "select role service" dialog box is displayed.

1.3 select "manage services" and click "Next" -----> click "Install ". After the installation is complete, re-open "Server Manager" to view the "Management Service" icon on the "Internet Information Service (IIS) manager" main interface.

1.4 open the "Management Service" Main Interface, start a remote connection, and set the connection IP address (Server IP address) and port. Then start "Service Management".

1.5 Add the port number for Service Management (if enabled) to the "inbound rules" of the firewall.

2. install and configure Web Deploy

Web Deploy: http://www.iis.net/downloads/microsoft/web-deploy

2.1 After the download is complete, open the installation package and select "full installation" on the selection page.

2.2 After the installation is complete, open "Server Manager" and Right-click any website name on the "Internet Information Service (IIS) manager" Page. Select "deploy" to bring up the level-2 menu.

2.3 click Enable web deploy release in the level-2 menu that appears in the previous step. The Enable web deploy release dialog box is displayed, select a system administrator user authorization (permission issues may occur when publishing a non-Administrator account) and set the IP address and port number in "specify the url of the Publishing Server connection ".

(That is, the IP address and port set in 1.4)

2.4 click the setting button in the "Enable web deploy release" dialog box. The text displayed in the result is set successfully. The configuration of this server is all done, and the next step is to release it in VS2012!

3. Use VS2012 to remotely publish a website

3.1 set the publishing dialog box: "service URl" is the url of "url of the specified publishing server connection" in 2.3, "website/Application" is a website on IIS that enables "web deploy release". the user name and password are the user account and password set in 2.3, select "allow untrusted certificate (U )"

Take the configuration file msd_154 and follow jenkins configuration. net mvc for continuous integration configuration. You only need to set the configuration file to the new msd_154.

/t:Rebuild /p:Configuration=Release/p:AllowUntrustedCertificate=True/p:password=Welcome123;PublishProfile=msd_154;DeployOnBuild=true;VisualStudioVersion=11.0 

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.