In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Recently, the company is preparing to replace the continuous integration tool used by Hudson with Jenkins. It has studied it specially. Now it has some results and is ready to document it as a topic.
Since the company already has Hudson, it can also be used to build releases normally, and if it is simply copied over, it will seem too horizontal. First of all, I added a simple verification step to automatically trigger the success of the release after the completion of the release and sent the detection results to the people who executed the build through email. Of course, as the operation and maintenance capability is limited, this verification can only detect whether tomcat starts normally, and whether the business level is normal requires further testing by testers, which is outside the scope of my research.
The final results are as follows:
One or three installation methods:
Note: JDK7 or above is recommended (some plugins require JDK7 to be supported), Tomcat 6 or above is recommended.
Installation via dpkg/apt, rpm/yum
Run war package directly via java (http://mirrors.jenkins-ci.org/war/latest/jenkins.war)
# java -jar jenkins.war --httpPort=8090
Release war packages via tomcat
By default Jenkins installed via war packages will create the/root/.jenkins/directory as the home directory for Jenkins
# mv jenkins.war /opt/apache-tomcat-7.0.56/webapps/# /opt/apache-tomcat-7.0.56/bin/startup.sh
Jenkins Plugin Installation:
Jenkins Plugin Manager allows you to install/update plugins. Jenkins connects to an online repository to retrieve available and updated plug-ins. If your Jenkins server does not connect directly to external resources, you will need to download from Jenkins website (https://updates.jenkins-ci.org/download/plugins/) and manually upload the installation.
System Admin> Manage Plugins> Advanced> Upload Plugins
III. Installation Configuration Maven
Since jenkins is mainly trying maven plug-ins to build java projects, you need to install maven and install maven plug-ins.
System Management>Global Tool Configuration
Download and extract maven to/opt/directory # vi /etc/profileexport MAVEN_HOME=/opt/mavenexport JAVA_HOME=/opt/jdk1.7.0_25export PATH=$PATH:$MAVEN_HOME/bin:$JAVA_HOME/bin# source /etc/profile# mvn -vApache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00)Maven home: /opt/mavenJava version: 1.7.0_25, vendor: Oracle CorporationJava home: /opt/jdk1.7.0_25/jreDefault locale: en_US, platform encoding: UTF-8OS name: "linux", version: "2.6.32-504.el6.x86_64", arch: "amd64", family: "unix"
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.