Continuous Integration ~ Jenkins builds a dotnetCore project, jenkinsdotnetcore

Source: Internet
Author: User
Tags dotnet

Continuous Integration ~ Jenkins builds a dotnetCore project, jenkinsdotnetcore

 

Last week, a major component was the release of dotnet core2.0. NET Standard2.0 has also been released, and the entire Microsoft ecosystem is excellent. Of course, there is also a BUG. For example, EFCore's support for Mysql is still flawed compared with 1.1, this is a good solution. Today we will mainly talk about how to integrate jenkins and dotnetCore into jenkins for persistent integration after they are installed in windows!

  • Install the dotnet core sdk 2.0
  • Install jenkins
  • Create a core project on github
  • Start our CI journey

Dotnet is a command package

After jenkins is installed, it is hosted in windows service as a service. port 8080

Build our core solution on github and create a console program for CI integration!

Deploy our scripts in jenkins in three steps: one step is to pull the latest code from the server, the other step is to build the dotnet to restore the package, build the project, and release the project to the local directory, send the generated code to the server in three steps.

Note that the plug-in added here is windows batch command. To avoid the trouble caused by space in the path, we add double quotation marks to the path. Otherwise, it will be considered as two projects.

The synchronization code is still written using powershell, which is relatively fixed.

After an automatic project is created, the project has console log output, which can be used for troubleshooting!

Now, the deployment is complete!

Next, let's talk about the cooperation between jenkins and docker!

Thank you for reading!

 

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.