Foreword:
It's a simple thing to look at, but I still spent a lot of time. No previous experience deploying .net projects. During this period, I encountered a lot of troubles and troubles. Many posts on the Internet are gorgeous and fancy, and there is no distinction between how wrong it is, and I feel that I am writing posts without actual combat. It really hurts me. My continuous integration and continuous deployment solution is built after thinking about it myself. There are a lot of places where there are tricks. It's my first time anyway, so please advise. The first version hopes to help friends who read the article. I will continue to update.
Prepare:
First step server preparation
1.Jenkins server (core), IIS server (deployment) [window sever 2012 R2]
Find the window system yourself!
2. Gitlab server
Installation and deployment tutorial: add later
Step 2: Preparation of software tools
On the [window sever 2012 R2] server
1. Download git
Official website: https://git-scm.com/
2. Download Vs2019
Official website: https://visualstudio.microsoft.com/zh-hans/vs/
3. Download dontnetcore
Official website: https://visualstudio.microsoft.com/zh-hans/vs/
4. Download Jenkins various plugins (see yourself)
Official website: https://plugins.jenkins.io/
Offline plugin package I provide (highly recommended)
https://download.csdn.net/download/qq_41612292/12701452
Ideas:
1) Pull the code from gitlab---"pull to the Jenkins workspace----"Nuget get the project package----"Msbuild compile project----"Deploy IIS
2) Pull the code from gitlab---"pull to the Jenkins workspace---".netcore get the package and compile---"deploy to the deployment server
The whole: (magic portal - continuous update)
1. Download
1) JDK installation, environment variable settings, Tomcat download
Java development family bucket:
https://download.csdn.net/download/qq_41612292/11956881
(Bloggers on the X day have no way to earn points, does their conscience hurt?)
The corresponding tools can be downloaded from the following official websites:
JDK official website:
https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
Tomcat official website:
JDK installation tutorial:
https://blog.csdn.net/qq_41612292/article/details/102902397
Tomcat installation tutorial:
2) Jenkins installation tutorial
Jenkins download address:
The war package I provided (highly recommended, because I am using this version)
https://download.csdn.net/download/qq_41612292/12701410
Offline plugin package I provide (highly recommended)
https://download.csdn.net/download/qq_41612292/12701452
Two ways to upload offline plugins
(add later)
Search for the plugins missing from the Jenkins plugin:
to be continued..
references:
This time there are too many references, here are the ones that helped me the most
https://www.cnblogs.com/hunternet/p/9590287.html
https://blog.csdn.net/qq_18145031/article/details/88533766
If there is any infringement, please contact by email, I am sorry.
This is only for learning personal notes, and if there is any reprint, please indicate the source.
Contact email: [email protected]
Learn to test the penguin group together (chat, water group, do not disturb advertising): 826471103