laitimes

"Jenkins01" Installation and Deployment of Jenkins (Jenkins Tutorial) I. Download, installation, and environment setup and deployment of jenkins.

author:Test the proms

<h1 class="pgc-h-arrow-right" >, download, install, and deploy jenkins. </h1>

1. What is jenkins and what it does:

Jenkins is a scalable continuous integration (CI) platform. It's just a platform that really works with plugins.

The main roles of Jenkins:

Continuous monitoring of software version releases/test projects.

Monitors the work performed by external scheduled calls.

2. Download address: https://jenkins.io/download/ Current version: 2.211

The jenkins project has two release lines, namely LTS long-term support (or stable version) and weekly update version (latest version). It is recommended to choose LTS Long-term Support Edition and download the universal Java Project war package.

"Jenkins01" Installation and Deployment of Jenkins (Jenkins Tutorial) I. Download, installation, and environment setup and deployment of jenkins.

3. Download jdk version 1.8 or above and install it, and configure the environment variables of JDK after installation. (The specific steps will not be repeated here)

4. Run the command on the dos command line to extract the war package: java -jar jenkins.war (by default the port is 8080, if you want to use another port to start, you can modify it by using the command line "java –jar Jenkins.war --httpPort=80")

After running the command, jenkins.war will automatically generate a jenkins folder in the C disk directory. This folder under the C drive can be run independently.

If you find this article helpful to you, if you are interested in software testing, interface testing, automated testing, interview experience exchange, you can join the software testing exchange group: 695458161, the group does not regularly distribute free materials, and peers to exchange technology. These materials are the essence of the author's more than ten years of testing career.

5. Access the jenkins project in the browser: http://localhost:8080/jenkins the unlock Jenkins interface appears, indicating that the jenkins project is completed, and the administrator password needs to be entered here. As shown in the following figure:

"Jenkins01" Installation and Deployment of Jenkins (Jenkins Tutorial) I. Download, installation, and environment setup and deployment of jenkins.

There is a hint in the image above: Administrator password in: C:\jenkins\secrets\initialAdminPassword Open this file to get the password and enter the password, click the "Continue" button after the following figure:

"Jenkins01" Installation and Deployment of Jenkins (Jenkins Tutorial) I. Download, installation, and environment setup and deployment of jenkins.

Click the :[Select plugin to install] button, and the following default plugin installation interface will appear.

"Jenkins01" Installation and Deployment of Jenkins (Jenkins Tutorial) I. Download, installation, and environment setup and deployment of jenkins.

This page will select install some plugins by default, and directly click the "Install" button to install all recommended plugins.

"Jenkins01" Installation and Deployment of Jenkins (Jenkins Tutorial) I. Download, installation, and environment setup and deployment of jenkins.

Wait for all plugins to install (wait patiently for 1-2 hours). When installing plug-ins, there will be some plug-in installation failures (such as X in the figure above), the installation of these plug-ins is preconditioned, and after the installation is over, press the lower right corner "Retry" to continue installing, and the previously failed plug-ins can be installed. When the installation is complete, click on the "Continue" button,

"Jenkins01" Installation and Deployment of Jenkins (Jenkins Tutorial) I. Download, installation, and environment setup and deployment of jenkins.

Enter the user name: admin, password: 123456, confirm password: 123456, full name: admin, click the "Save and Complete" button after the email address

"Jenkins01" Installation and Deployment of Jenkins (Jenkins Tutorial) I. Download, installation, and environment setup and deployment of jenkins.

Click "Save and Complete" to appear in the following image to indicate that Jenkins has been configured. Click [Get started with jenkins] to log in.

"Jenkins01" Installation and Deployment of Jenkins (Jenkins Tutorial) I. Download, installation, and environment setup and deployment of jenkins.

At this point, the jenkins installation is complete, and you can start the jenkins continuous integration journey!