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配置项:

Jenkins+Maven+Svn搭建持续集成环境持续集成和自动部署

 

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异常,(用户名密码错误)

相关文章:

  • 2021-04-17
  • 2021-09-18
  • 2021-10-12
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
猜你喜欢
  • 2021-08-23
  • 2022-12-23
  • 2022-01-17
  • 2021-06-11
  • 2021-05-01
  • 2022-12-23
相关资源
相似解决方案