Jenkins和Hudson有很深的渊源,Jenkins目前更新频繁,目前选用Jenkins为持续集成工具和自动部署
Jenkins的使用有很多的介绍,主要记录如下要点:
192.168.1.240:
Tomcat: /usr/local/share/apache-tomcat-6.0.37/ 访问端口8186
Jenkins: /usr/local/share/apache-tomcat-6.0.37/webapps/Jenkins
访问地址: http://192.168.1.240:8186/jenkins/
1. Maven使用Nexus的构建
Settings.xml内容增加Nexus profile:
<profile> <id>ecodeProfile</id> <repositories> <repository> <id>jsecode-maven-central</id> <name>jsecode maven</name> <url>http://192.168.1.252:9080/nexus/content/groups/public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> </profile> </profiles>
2. Jenkins配置项:
3. Tomcat 增加具有权限的用户,参见附件Jenkins hudson Deploy Plugin [tomcat-users.xml].html
4. 异常处理:java.io.IOException: Server returned HTTP response code: 403 for URL
参考附件 Jenkins hudson Deploy Plugin [tomcat-users.xml].html (http://www.jk-wang.info/?p=245)
用户处理后,需要重启tomcat, 否则401异常,(用户名密码错误)
时间: 2024-09-28 18:10:05