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 CI building

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Build Jenkins under CenOs 1. Upload the installation package jenkins-1.656-1.1.noarch.rpm

two。 Install jenkins

Sudo rpm-ivh jenkins-1.656-1.1.noarch.rpm

3.vi / etc/sysconfig/jenkins

Modify port JENKINS_PORT= "8888"-Port at will

Modify the running user JENKINS_USER= "admin"

4.vi / etc/init.d/jenkins

Add java path ~ / software/jdk1.7.0_79/bin/java

Candidates= "

/ etc/alternatives/java

/ usr/lib/jvm/java-1.6.0/bin/java

/ usr/lib/jvm/jre-1.6.0/bin/java

/ usr/lib/jvm/java-1.7.0/bin/java

/ usr/lib/jvm/jre-1.7.0/bin/java

/ usr/lib/jvm/java-1.8.0/bin/java

/ usr/lib/jvm/jre-1.8.0/bin/java

/ usr/bin/java

/ home/admin/software/jdk1.7.0_79/bin/java

5. Modify jenkins owner

Sudo chown-R admin / usr/lib/jenkins

Sudo chgrp-R admin / usr/lib/jenkins

Sudo chown-R admin / var/log/jenkins

Sudo chgrp-R admin / var/log/jenkins

Sudo chown-R admin / var/lib/jenkins

Sudo chgrp-R admin / var/lib/jenkins

Sudo chown-R admin / var/cache/jenkins

Sudo chgrp-R admin / var/cache/jenkins

6. Start jenkins

Sudo service jenkins start

7. Visit jenkins

Http://ip:8888

8. The optional plug-ins list appears empty after installing jenkins

Http://www.techv5.com/topic/421/

Software needs to be installed:

Grails

JDK

GIT

TOMCAT

PYTHON,NOSE

Plug-ins need to be installed:

Cobertura Plugin code coverage

Email Extension Plugin email Notification

Grails plugin compilation tool

JUnit Plugin unit test

Python Plugin pyhton script

SSH Slaves plugin remote login node server

Hudson Seleniumhq plugin

TestNG Results Plugin

Job:

Execute in front and back order

Build construction

Test testing (unit, interface, ui)

Checkcode code check

Deploy deployment

Trigger condition:

Build once the code has changed

Test according to the actual need

Code check once the code changes

Deploy according to actual needs

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