jenkins installation and use

I recently learned jenkins, and I feel that it is a very good tool. Next, I will explain the problems encountered in the process of using it, so that I will not repeat it in the future;

The reference address is this:  https://www.cnblogs.com/c9999/p/6399367.html

Download address:  http://mirrors.jenkins.io/war-stable/latest/jenkins.war

This is a war package, you can see it is a web project at a glance, and then put it in tomcati to start it;

Note that my virtual machine jdk was 1.7 at the beginning, and then there was a problem, that is, it could not be started, and then it was ok when I changed it to 1.8

Then the virtual machine configures maven environment variables, etc., these are a bunch of Baidu, I will not introduce them;

Highlight the following:

 After entering, of course, I chose the default installation, after all, a rookie;

 Then I found that the default installation does not install the maven plugin and SSH

 Then install the maven plugin and click System Management

Then click Plugin Management

Click on optional plugins

Search for the Maven Integration plugin to install it;

Similarly SSH search Publish Over SSH

After the installation is complete, create a new maven project;

 In the process of testing, I have been fighting with SVN and SSH uploading;

Important note:

Every time you build, the system will download the source code from SVN to the workspace. Note that it is downloaded to the workspace.


Then find pom.xml in the workspace, and then execute the corresponding command


I am optimistic about how to fill in the path. I have been tangled here for a night before, and I will pay attention later;

A series of operations can then be performed before and after the build,

I did the war upload operation after the build was completed, and I wrote down the path specially, so don't do it again in the future;


Looking at the above picture information, it is also relative to the path of the workspace. The Remote directory address is also relative to the path of your SSH link.


Well, I encountered this problem with the initial understanding of jenkins this time. If there is a problem in the future, I will add it;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325752483&siteId=291194637