Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Jenkins + git+maven for continuous integration test version control (unfinished version)

Shulou Source: shulou.com Published: 2022-06-03 04:47:50 10月03日 Update

1. Install maven

Download http://mirror.bit.edu.cn/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.zip

(1) when renaming apache-maven-3.0.4 moves to the / usr directory, I will rename it to maven, which is easy to use.

(2) modify environment variables:

Vi / etc/profile

# maven

Export MAVEN_HOME=/usr/local/maven

Export PATH=$ {MAVEN_HOME} / bin:$ {PATH}

(3) the environment variable takes effect.

Source / etc/profile

(4) Verification: mvn-v

Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T19:57:37+08:00)

Maven home: / usr/local/maven

Java version: 1.7.0_51, vendor: Oracle Corporation

Java home: / usr/local/jdk1.7.0_51/jre

Default locale: zh_CN, platform encoding: UTF-8

OS name: "linux", version: "2.6.32-358.el6.x86_64", arch: "amd64", family: "unix"

2.jenkins download

Http://mirror.xmission.com/jenkins/war/1.613/jenkins.war

(1) Jenkins configuration

Copy the downloaded jenkins.war to the webapps directory of tomcat:

Cp-RP jenkins.war / usr/lcoal/tomcat/webapps/

Vi / etc/profile

Export JENKINS_HOME=/usr/local/tomcat/webapps/jenkins

Source / etc/profile

3.Apachetomcat installation

Http://apache.fayea.com/tomcat/tomcat-7/v7.0.61/bin/apache-tomcat-7.0.61.tar.gz

Start the tomcat server

Cd bin

. / startup

4.git software installation

Wget https://www.kernel.org/pub/software/scm/git/git-1.8.3.4.tar.gz

. / configure

Make & & make install

5. Visit tomcat and Jenkins projects

Tags: Variable environment directory project copy time server software this is service mobile configuration verification version control test Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple MariaDB NVidia Redmi Shulou Technology