The most popular continuous integration tool jenkins, here comes a detailed tutorial (fool tutorial)

Many small partners always encounter some problems when installing and configuring jenkins.

Today, I specially organize the installation of jenkins and the configuration of some commonly used functions into this article, I hope it will be helpful to everyone!

1Install the JDK

  • After the JDK is installed, you need to configure environment variables, you can solve it by Baidu

2 install jenkins

  • Note: jenkins requires a java environment, so install jDK first

  • Run the installer and just click the next step...it's too simple, please solve it yourself

3 start jenkins

1. Browse and enter 127.0.0.1:8080. Under the Windows environment.

  • After waiting for the page to load, the following interface will appear

2. Choose to install the plug-in

3. Create a user

4jenkin build project (source code management)

1. The code is local

  • Copy the code of the project directly into the workspace of the project

2. Pull the code from svn

  • svn-plugin

3. Pull the code from git

  • About the use of git, you can leave a private message and get related video tutorials for free

5jenkins build trigger

6jenkins sends mail

1. Install the plug-in

2. Configure smtp server

a. Open system settings

b. Set administrator email address

c. Configure the smtp server address

  • Click on the advanced configuration option

3. Send the test report in the project

7 test report display configuration

  • Install the plugin:

  • Configure post-build actions

  • Executing the build again produces a report bar

  • report css style configuration

Problem: Opened html report, no css loaded

Solution: In jenkins->system management->script command line, enter:

Click [Run], and it will be fine (remember to restart jenkins, and the default settings will be restored.)

Guess you like

Origin blog.csdn.net/a448335587/article/details/130138679