Continuous Integration

 

 

What is Jenkins?

Jenkins is used to monitor repeatable jobs. For example, to build a soft project or a background daemon to automate tasks. Jenkins can do a lot of work, Hudson currently focuses on the following two functions:

 

  1. Programs to build and test software projects, like navigation control and destruction control. In short, Hudson provides an easy-to-use continuous integration (CI) method for projects and makes it easier for users to get the latest build products. The ability to build software products continuously and incrementally.
  2. Monitor some regularly executed tasks. For example, background daemons, worker processes mail, and even when those jobs are running on remote servers can do this monitoring. For example, through the daemon, you can receive some regular mail, when compiling and processing, when there is a failure, you will also receive some such mail. Hudson preserves all of this output, while making it easier to get any exception or failure information.

 

Jenkins installation

Installation Environment:

a) Application server: Tomcat8

b) Ant:apache-ant-1.9.3

c) Maven :apache-maven-3.0.4

d) JDK:

JAVA_HOME: JDK installation directory

path : add %JAVA_HOME%\bin

e) Jenkins.war: Download the latest version of Jenkins war package

installation steps:

  1. Tomcat: Copy jenkins.war to /Tomcat/webapps, JBoss: Copy jenkins.war to /JBoss/server/default/deploy.
  2. The default JENKINS_HOME is user $HOME/.JENKINS, other directories can also be specified. Add a new variable JENKINS_HOME to the environment variable, and the value can be the specified directory. Such as: JENKINS_HOME=D:\jenkins\;

 

Jenkins reads configuration directory

Since JENKINS is derived from hudson and is upward compatible with hudson, when reading the home directory, read it in the following order:

    JENKINS_HOME or HUDSON_HOME? (scan for existence in turn)

     1. JNDI environment variable JENKINS_HOME

     2. JNDI environment variable HUDSON_HOME

     3. System property JENKINS_HOME

     4. System property HUDSON_HOME

     5. Environment variable JENKINS_HOME

     6. Environment variable HUDSON_HOME

     7. "/.hudson" in the user's home directory

     8. "/.jenkins" in the user's home directory

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326561251&siteId=291194637