Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report