Svn + tomcat + Hudson持续集成部署
1.首先下载hudson
2. 我这里使用hudson-3.0.1版本
3. 下载后hudson是一个 war 包
4. 操作部署:
(1). 直接将hudson的war包复制到tomcat的webapps 中,启动运行tomcat,直接在浏览器地址中输入:http://localhost:16001/hudson-3.0.1/
(2). 登陆界面如下图:
(3).连接点击”系统管理”和”系统设置”如下图:
(3).在整个页面中配置jdk,ant,maven等信息,如下图:
(4).查看下hudson安装的插件,确保已经安装了如下图插件:
(5).如果使用代理上网的话,还需要设置代理服务器,如下图:
(6).创建一个hudson任务,如下图:
最后不要忘记保存!
(7). 编写项目部署ant文件,如下:
|
<?xml version="1.0" encoding="UTF-8"?> <project <description>使用【HUDSON-3】自动化持续部署【评审主系统】</description> <target <echo>########################</echo> <echo>【持续部署项目构建工作文件】</echo> <echo>########################</echo> <echo>【该文件是持续部署构建文件,如果你需要使用Ant构建该应用程序请使用项目根目录'deploy'下build.xml文件构建】</echo> </target> <target <!--项目名称--> <property <!--项目jar文件路径--> <property <!--项目源文件路径--> <property <!--项目配置文件路径--> <property <!--构建路径--> <property <!--应用服务器路径--> <property <!--应用服务器启动日志文件 --> <property <!--应用服务器jar文件路径--> <property <!--应用服务器项目部署路径--> <property <!--项目的WebRoot路径--> <property <!--应用服务器项目访问路径--> <property <property <property <property <property <condition <http </condition> <condition <not> <http </not> </condition> <path <fileset <include </fileset> <fileset <include </fileset> </path> <tstamp <property <delete <mkdir </target> <target <echo>正在编译程序,请稍后...</echo> <javac includeantruntime="false"nowarn="on"source="1.6"target="1.6"deprecation="true"debug="true" encoding="UTF-8"classpathref="project.class.path"> </javac> <copy <fileset <exclude </fileset> <fileset <include <include </fileset> </copy> <echo>编译程序已完成!</echo> </target> <target <echo>正在压缩War包,请稍后...</echo> <war <lib <classes <fileset <include <include <include <include <include <include <include <include <include <include <include <include <include <include <include <include <include <include </fileset> </war> <echo>压缩War包已完成!</echo> </target> <target <echo>启动部署服务器TOMCAT中,请稍后...</echo> <exec <env <env <env <arg </exec> <echo>启动部署服务器TOMCAT已完成!</echo> </target> <target <echo>停止部署服务器TOMCAT中,请稍后...</echo> <exec <env <env <env <arg </exec> <echo>停止部署服务器TOMCAT已完成!</echo> <waitfor <available </waitfor> </target> <target <echo>正在执行自动化构建部署操作,请稍后...</echo> <antcall <waitfor <not> <http </not> </waitfor> <delete <delete <delete <copy <antcall <echo>自动化构建部署已经完成!</echo> </target> </project> |
(8). 创建好任务后,如下图,点击“构建一次图标”即可,完成持续部署操作。
(9).命令行输入如下图:
Svn + tomcat + Hudson持续集成部署的更多相关文章
- Jenkins +Maven+Tomcat+SVN +Apache项目持续集成构建
详解Jenkins +Maven+Tomcat+SVN +Apache项目持续集成 一:前言 1. Jenkins jenkins版本大全http://mirrors.jenkins-ci.org/ ...
- ant+svn+tomcat实现项目自动部署
因工作需要,研究并实现了 ant+svn+tomcat实现项目自动部署,其中参考了下面文章:http://www.cnblogs.com/taoweiji/p/3700915.html jar包需要e ...
- [dotnet core]落地微服务特色的DevOps管道,持续集成/部署到kubernetes。
目录 前言 目标 工具 - 最小的学习成本 方案 - 愿景 1. 持续集成 - CI 2. 持续部署 - CD 部署环境 1. 部署gitlab-runner 2. 注册gitlab-runner 搭 ...
- Centos7.4简单安装使用gitlab+maven+jenkins实现java代码的持续集成部署
1.工具的简单介绍 gitlab--源代码版本管理控制工具 maven--java代码编译构建工具 jenkins--基于java开发的自动化持续集成部署工具 sonar--代码质量管理工具 2.gi ...
- Devops 开发运维高级篇之Jenkins+Docker+SpringCloud微服务持续集成——部署方案优化
Devops 开发运维高级篇之Jenkins+Docker+SpringCloud微服务持续集成--部署方案优化 之前我们做的方案部署都是只能选择一个微服务部署并只有一台生产服务器,每个微服务只有一个 ...
- 持续集成篇 --Hudson持续集成服务器的安装配置与使用
样例项目参考视频教程:http://www.roncoo.com/course/view/85d6008fe77c4199b0cdd2885eaeee53 IP:192.168.4.221 8G内存 ...
- Hudson持续集成服务器的安装配置与使用
Hudson只是一个持续集成服务器(持续集成工具),要想搭建一套完整的持续集成管理平台, 还需要用到前面课程中所讲到的 SVN.Maven.Sonar等工具,按需求整合则可. 1.安装 JDK并配置 ...
- Dubbo入门到精通学习笔记(六):持续集成管理平台之Hudson 持续集成服务器的安装配置与使用
文章目录 安装Hudson 使用Hudson tips:自动化部署 附录:两个脚本 安装Hudson IP:192.168.4.221 8G 内存(Hudson 多个工程在同时构建的情况下比较耗内存) ...
- Jenkins + svn + maven 构建持续集成环境搭建
Jenkins简介 Jenkins是一个开源软件项目,旨在提供一个开放易用的软件平台,使软件的持续集成变成可能. Jenkins是基于Java开发的一种持续集成工具,用于监控持续重复的工作,功能包括: ...
随机推荐
- Codeforces Round #346 (Div. 2)E - New Reform(DFS + 好题)
E. New Reform time limit per test 1 second memory limit per test 256 megabytes input standard input ...
- 【原】react做tab切换的几种方式
最近搞一个pc端的活动,搞了一个多月,甚烦,因为相比于pc端,更喜欢移动端多一点.因为移动端又能搞我的react了. 今天主要总结一下react当中tab切换的几种方式,因为tab切换基本上都会用到. ...
- 【原】js检测移动端横竖屏
摘要:上周做了一个小项目,但是要放到我们的app上,然而需要横竖屏使用不同的样式.横屏一套,竖屏一套.调用了手机APP那里的api,可是他们那里ios和安卓返回的不一样. 各种头疼.于是用了css3的 ...
- Microsoft.Office.Interop.Excel的用法
1)ApplicationClass ExcelApp = New ApplicationClass(); 2) 更改 Excel 标题栏: ExcelApp.Caption := '应用程序调用 M ...
- 使用css3进行增强
使用css3进行增强 1,为元素创建圆角 border-radius:25px; .about img{ border: 5px solid #bebebe; float: left; margi ...
- C++ Pointer-to-Member Selector
http://www.codeguru.com/cpp/cpp/article.php/c17401/C-Tutorial-PointertoMember-Function.htm https://m ...
- C++11
http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list http://www.open-std.o ...
- Object Graph Serialization
http://coding-time.blogspot.com/2008/03/serialize-object-graph-to-xml-in-net.html http://trycatch.me ...
- Python之路【第五篇续】:面向对象编程二
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAABgQAAALaCAIAAABxja8cAAAgAElEQVR4nOzd6X9Tdd74/+uv+f5uzF
- text-indent:2em详解
text-indent:2em; 解释一下:text的意思是文本,indent在计算机英语中意思是缩进,至于后面的2em意思就是2个相对单位: em又是什么单位? em这个单位的意思就是文字的高度,1 ...