Jenkins build web applications based on the .NET Core

 

Before writing the basis for an article Jenkins + gogs released. This blog is based on previous articles written.

Before article addresses: https://www.cnblogs.com/cluyun/p/10848989.html

So read the following article you need to have the knowledge to build the foundation Jenkins + git.

This is mainly written how to build web applications based on .NET Core with Jenkins.

First, prepare

  Installations need to build the corresponding version of the .NET Core SDK and .NET Core Runtime.

  Download: https://dotnet.microsoft.com/download/dotnet-core

   After installing remember to restart the server.

   Initialization gogs warehouse

 

 

 Second, create a task to build Jenkins

 

  Create a free-style software project

 

  Configure git

 

  Increased build steps -> Batch command execution windows

 

input the command

 

Restore DOTNET 
DOTNET Build 
DOTNET publish -o "to be published in the local directory ."

 restore: Restore package nuget

 build: build the project

 publish: publish the project to the specified directory

 

Third, release the test

 

 

 

 

finished.

 

 

I thank the following links to help:

  https://www.cnblogs.com/liyouming/p/9283345.html

  https://www.cnblogs.com/sunshine-wy/p/9860599.html

Guess you like

Origin www.cnblogs.com/cluyun/p/11286335.html