jenkins+maven+tomcat+svn configuration notes (1) - basic settings

    I didn't understand jenkins at all before. I browsed the configuration of some blogs on the Internet. I just want to say that it is too simple and rough, and some of them cause people a lot of confusion. So I spent a whole morning, took a lot of detours, and finally got the integration of jenkins. I encountered a lot of problems in the middle and now write them down and share them with myself and everyone, hoping to give some help to friends who use them. I don’t want to write long and formal notes, but try to make them understandable for everyone.

 

   Deployment environment: centos+jdk1.7+tomcat6+maven3.0.5

   Preparations: configure the server's java, maven environment, and install tomcat.

   

   1. Jenkins installation configuration

   1) Download jenkins.war from the official website, then put it in the webapps directory of tomcat, start tomcat, and visit http://IP:port/jenkins to enter the homepage of jenkins.

   2) Click on the system settings on the left menu of the jenki homepage to see some basic configuration options.

   3) System configuration:

    a. The first home directory of the system settings I use the default: /root/.jenkins

    Click Advanced under the main directory to set the workspace, which is the location where jenkins stores the down code from SVN.

 

   I specified it here under /home/jenkins/workspace.

  

   b.JDK+MAVEN option configuration

   

 This is easy to understand.

  

 

 

    2. Jenkins plugin management

       There are plug-in management in the system management, and there are four options in the interface: updatable, optional plug-ins, installed, and advanced. Filter the required plugins in the search box, and download and install plugins as appropriate:

      Subversion Plugin

      Deploy to container Plugin, this is the plug-in that will be used for remote deployment.

 

Guess you like

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