??xml version="1.0" encoding="utf-8" standalone="yes"?>aaa日本高清在线播放免费观看,精品av久久久久电影,久久九九热re6这里有精品http://www.aygfsteel.com/jjshcc/category/54848.htmlzh-cnFri, 12 Jun 2015 05:15:33 GMTFri, 12 Jun 2015 05:15:33 GMT60Jenkins+Maven+Git搭徏持箋集成和自动化部v的配|手?/title><link>http://www.aygfsteel.com/jjshcc/archive/2015/06/12/425644.html</link><dc:creator>Eric_jiang</dc:creator><author>Eric_jiang</author><pubDate>Fri, 12 Jun 2015 02:59:00 GMT</pubDate><guid>http://www.aygfsteel.com/jjshcc/archive/2015/06/12/425644.html</guid><wfw:comment>http://www.aygfsteel.com/jjshcc/comments/425644.html</wfw:comment><comments>http://www.aygfsteel.com/jjshcc/archive/2015/06/12/425644.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/jjshcc/comments/commentRss/425644.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/jjshcc/services/trackbacks/425644.html</trackback:ping><description><![CDATA[<p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">前言<br />    持箋集成q个概念已经成ؓ软g开发的LQ可以更频繁的进行测试,早发现问题q提C。自动化部v更不用说了Q可以加快部|速度Qƈ可以有效减少Zؓ操作的失误。之前一直没有把q个做v来,最q的新项目正好有ZQ费了一番功夫ȝ搞好了,Ҏ记录?/p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">1. 开发环?br />    我这边徏立的标准开发环境如下:<br />    1. Maven做项目管理;<br />    2. Git做代码管理;<br />    3. SpringMVC+Spring+Mybatis搭徏的程序框Ӟ<br />    4. Mysql作ؓ数据存储QDruid做连接池Q?br />    5. unitils作ؓ试框架Q?br />    6. Hibernate Validator作ؓ数据验证Q?/p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">    7. log4j作ؓ日志输出?br />    注:其实q套东西非常像GrailsQ但不敢用太Ȁq的技术和框架Q担心招人的问题-_-!</p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">2. Jenkins的部|?br />    Jenkins原名是HudsonQ这个渊源这里就不追溯了Q网上多得是Q但是千万别下错了,官网地址?a style="color: #b32bd5;">http://jenkins-ci.org/</a>。徏议直接下载最新版本?/p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">    q个软g的安装是我见q最单的了,直接取war包放到tomcat下,启动tomcat卛_。相应的工程配置会在~/.jenkins目录中。(当然你根据官|给的那U安装方法也行,只是在debian的那个弄法还要去下蝲openjdk{等Q多下了很多东西Q相关配|也按linux目录标准分开的,q要L。)</p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">    另外提醒一下,把Jenkins安装在Linux上,q样׃会出现ssh{命令找不到的问题,否则q要惛_法去处理?/p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">3. Jenkins的插?br />    安装好后直接讉K“http://yourhost:8080/jenkins”卛_q入ȝ面,点击“pȝ理”->“理插g”Q首ơ进入都是空白的Q要{?分钟左右才能看到内容Q在后台估计是在做更新或者下载,然后重新再进此界面就能看到内容了?/p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">3.1 Git插g<br />    ?#8220;可选插?#8221;中找?#8220;GIT plugin”安装Q最下面有个安装完重启的N项Q选中卛_。这里最搞笑的是网l是否连通的办法是去试打开googleQ岂不知天朝是打不开的,q好不媄响下载。。?/p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">3.2 Email插g<br />    q个事情非常蛋疼Q之前测试怎么都发布出来邮Ӟ最后升U了一下默认插件就行了Q狂汗。在“可更?#8221;中找?#8220;Mailer Plugin”选中q更新即可。另外如果想有更丰富的邮件内容,去“可选插?#8221;中安?#8220;Email Extension Plugin”Q具体邮件内定w|网上大把可以搜?/p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">3.3 其他插g<br />    默认p了很多常用插Ӟ比如Maven、Junit{等Q如果用感觉有问题可以试升一下版本,但是没有升说明Q也不知道升U了什么东ѝ?/p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;"><br />4. pȝ讄<br />    ȝ面点?#8220;pȝ理”->“pȝ讄”卛_q入。重炚w|以下内容:<br />    1. Java、Git、Maven的目录位|,保可以正确扑ֈ命oQ?/p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">    2. Jenkins URLQ自动生成的Q检查一下即?<br />    3. 邮g的设|。这里注意一下,上面有一?#8220;pȝ理员邮件地址”需要填写,另外“Extended E-mail Notification”中填写配|,原来?#8220;邮g配置”׃用再理会了?/p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">5. 目讄<br />    在主界面直接“新徏”Q就会有一个新的项目。重炚w|以下内容:</p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">    1. 源码理Q选择GitQ填?#8220;Repository URL”Qƈ加上相应?#8220;Credentials”Q其中认证信息用U钥的话q脆直接把私钥内容填上去p了,省的不知道目录查找规则还不知道出的啥问题?/p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">    2. 构徏触发器:q个地方要把“Build periodically”?#8220;Poll SCM”都选上Q时间格式都填写成一L卛_Q比?#8220;H/15  * * * *”Q下面会有个具体执行旉的提C,Build动作会自动比Poll延迟3?0U,q个讑֮q是很合理的?/p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">    3. 构徏Q增加两个构建步骤,分别?#8220;Execute shell”?#8220;Invoke top-level Maven target”Q注意先后顺序,可以拖拽摆放的。脚本执行根据自己需要,比如我需要去修改数据库连接配|,官方是自己在工程里面写好脚本Q这里直接调用,而不是在q写一个完整的脚本。Maven构徏加?#8220;clean test”卛_Q就是运?#8220;mvn clean test”的命令?/p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">    4. Publish Junit test result reportQ在试报告QXMLQ上加上“**/target/surefire-reports/*.xml”卛_Q这样就会每ơ测试完自动扑ֈ试报告Q在Jenkins上即可在每个构徏l构里面查看到?/p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">    5. 邮g通知Q在构徏后增?#8220;Editable Email Notification”Q填写邮件的接受者、内Ҏ式可以直接用全局变量Q重Ҏ配置一下发送触发条件?/p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">6. 安全性配|?br />    l过以上配置q行一ơ构建就会发玎ͼJenkins可以看到太多内容了,包括pull到的源码Q所以非常有必要增加权限控制。进?#8220;pȝ理”->“Configure Global Security”中进行如下步骤:<br />    1. 启用安全Q?/p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">    2. Jenkins专有用户数据库,先允许用h册;<br />    3. 授权{略选择“安全矩阵”Q新加一?#8220;admin”的用P把所有权限都开ladmin用户Q?br />    4. 在主界面的用户中扑ֈadminQ进行配|,讄登陆密码Q?br />    5. 先重新登陆测试一下是否admin正常Q没有问题就关闭允许用户注册Q把匿名用户的所有权限都L?/p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">7. 自动化部|?br />    q里我没有让Jenkins每次试都去部vQ一斚w是考虑到单元测试基本已l满需要了Q另一斚w因ؓ试太频J了Q一直部|也搞得Stage试环境要经帔R启,反而媄响正常的人工试。所以自己写了个脚本Q在必要的时候去q行一下去自动完成整个部v工作?br />#!/bin/sh <br />  <br /># update code <br />git pull <br />  <br /># package <br />mvn clean <br />mvn package -Dmaven.test.skip=true<br />  <br /># deploy <br />WAR=`ls target | grep war` <br />TOMCAT=/home/test/apache-tomcat-6.0.41 <br />mv target/$WAR $TOMCAT <br />cd $TOMCAT <br /># invoke another deploy script <br />sh deploy-war.sh $WAR webapps</p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;"> </p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">8. 一个非常蛋疼的问题<br />    q个和以上问题都无关Q只是极其不解的是这个错误在Windows下不出现Q在Linux下打成War也不会出玎ͼ只有在Linux下直接执行Maven test׃出错。其实问题的Ҏ是配置书写不够规范Q但是错误出现的不一致性实在让疹{报错如下:<br />1 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): xxx</p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">    q个是Mybatis找不到绑定的c,但是xml是正打包的Q怎么看都是没大问题,q且windows也是对的Q最后发现是我在写模p\径的时候,classpath后面必须要加?才是标准写法Q正写法如下:</p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">    <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"> <br />        <property name="basePackage" value="com.gzxitao.demo.*.dao"/> <br />    </bean> <br />  <br />    <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"> <br />        <property name="dataSource" ref="dataSource"/> <br />        <property name="configLocation" value="classpath:configuration.xml"/> <br />        <!-- q里是要扫描多个目录下的文gQ必d明成“classpath*”Q否则在某些情况下会报错 --><br />        <property name="mapperLocations" value="classpath*:com/gzxitao/demo/*/dao/*.xml" /> <br />    </bean></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; box-sizing: border-box; margin-bottom: 15px; margin-top: 15px; -webkit-print-color-adjust: exact; background-color: #fafafc;">Maven权威指南_中文完整版清晰PDF  <a style="color: #b32bd5;">http://www.linuxidc.com/Linux/2014-06/103690.htm</a></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">Maven 3.1.0 发布Q项目构建工?nbsp;<a style="color: #b32bd5;">http://www.linuxidc.com/Linux/2013-07/87403.htm</a></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">Linux 安装 Maven <a style="color: #b32bd5;">http://www.linuxidc.com/Linux/2013-05/84489.htm</a></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">Maven3.0 配置和简单?nbsp;<a style="color: #b32bd5;">http://www.linuxidc.com/Linux/2013-04/82939.htm</a></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;"><a target="_blank" title="Ubuntu" style="color: #b32bd5;">Ubuntu</a>下搭建sun-jdk和Maven2 <a style="color: #b32bd5;">http://www.linuxidc.com/Linux/2012-12/76531.htm</a></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">Maven使用入门 <a style="color: #b32bd5;">http://www.linuxidc.com/Linux/2012-11/74354.htm</a></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;">Jenkins的分布式构徏及部|?#8212;—节点  <a style="color: #b32bd5;">http://www.linuxidc.com/Linux/2015-05/116903.htm</a></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;"><span style="color: #ff0000;"><strong>Jenkins 的详l介l?/strong></span>Q?a title="Jenkins" style="color: #b32bd5;">Lq里</a><br /><span style="color: #ff0000;"><strong>Jenkins 的下载地址</strong></span>Q?a target="_blank" style="color: #b32bd5;">Lq里</a></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22.3999996185303px; text-align: justify; background-color: #fafafc;"><span style="font-size: small;"><strong>本文怹更新链接地址</strong></span>Q?a style="color: #b32bd5;">http://www.linuxidc.com/Linux/2015-06/118606.htm</a></p><img src ="http://www.aygfsteel.com/jjshcc/aggbug/425644.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/jjshcc/" target="_blank">Eric_jiang</a> 2015-06-12 10:59 <a href="http://www.aygfsteel.com/jjshcc/archive/2015/06/12/425644.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Jenkins+Maven+SVN搭徏自动部vQ自动测试环?/title><link>http://www.aygfsteel.com/jjshcc/archive/2015/06/12/425643.html</link><dc:creator>Eric_jiang</dc:creator><author>Eric_jiang</author><pubDate>Fri, 12 Jun 2015 02:49:00 GMT</pubDate><guid>http://www.aygfsteel.com/jjshcc/archive/2015/06/12/425643.html</guid><wfw:comment>http://www.aygfsteel.com/jjshcc/comments/425643.html</wfw:comment><comments>http://www.aygfsteel.com/jjshcc/archive/2015/06/12/425643.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/jjshcc/comments/commentRss/425643.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/jjshcc/services/trackbacks/425643.html</trackback:ping><description><![CDATA[<p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;">《目录?/span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px; color: #0000ff;">一、安?span style="font-family: Tahoma;">Jenkins</span></span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px; color: #0000ff;">二、配|?span style="font-family: Tahoma;">Jenkins</span></span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px; color: #0000ff;">三、自动编?/span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px; color: #0000ff;">四、自动测?/span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px; color: #0000ff;">五、自动部|?/span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;">一、安?span style="font-family: Arial;">Jenkins</span></span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;">地址<span style="color: blue;"><span style="font-family: Tahoma;">http://mirrors.jenkins-ci.org/</span></span>下蝲适合?span style="font-family: Tahoma;">Jenkins</span>版本?/span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px; font-family: Tahoma;">Windows</span>最新稳定版?span style="font-family: Tahoma;">Jenkins</span>地址为:<u><span style="color: blue;"><span style="font-family: Tahoma;">http://mirrors.jenkins-ci.org/windows-stable/jenkins-1.409.1.zip</span></span></u></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;">?span style="font-family: Tahoma;">Jenkins 1.409.1</span>版解压,把得到的<span style="font-family: Tahoma;">war</span>包直接扔?span style="font-family: Tahoma;">tomcat</span>下,启动<span style="font-family: Tahoma;">tomcat</span>Q?span style="font-family: Tahoma;">Jenkins</span>安装完毕,是不是很单啊?/span></p><h3><span style="font-size: 16px;">二、配|?span style="font-family: Arial;">Jenkins</span></span></h3><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px; font-family: Tahoma;">1</span>、打开<u><span style="color: #620091;"><span style="font-family: Tahoma;">http://10.3.15.78:8080/jenkins/</span></span></u>Q第一ơ进入里面没有数据,我们需要创?span style="font-family: Tahoma;">job</span>Q我们这?span style="font-family: Tahoma;">2</span>个项目,需要创?span style="font-family: Tahoma;">2</span>?span style="font-family: Tahoma;">job</span>?u><span style="color: #620091;"><span style="font-family: Tahoma;">http://10.3.34.163:9890/jenkins/</span></span></u></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px; font-family: Tahoma;">2</span>、点d上角?span style="font-family: Tahoma;">new job</span>Q在<span style="font-family: Tahoma;">new job</span>面需要选择<span style="font-family: Tahoma;">job</span>的类型,<span style="font-family: Tahoma;">Jenkins</span>支持几种cdQ我们选择“构徏一?span style="font-family: Tahoma;">maven2/3</span>目”</p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px; font-family: Tahoma;">3</span>、点?span style="font-family: Tahoma;">OK</span>按钮后,q会q入详细配置界面Q详l配|界面的配置很多,不过不用怕,大部分用默认配|就可以了,下面p说我们需要修改的几个地方Q?/p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px; font-family: Tahoma;">3.1</span>Q?span style="font-family: Tahoma;">Source Code Management</span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;">因ؓ我们使用<span style="font-family: Tahoma;">SVN</span>理源码Q所以这里选择<span style="font-family: Tahoma;">Subversion</span>Qƈ?span style="font-family: Tahoma;">Repository URL</span>中输入我们的<span style="font-family: Tahoma;">SVN</span>地址Q?/span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px; color: #0000ff; font-family: Tahoma;">http://10.3.34.163:9880/XXXX/trunk/</span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;">输入<span style="font-family: Tahoma;">SVN</span>库的<span style="font-family: Tahoma;">URL</span>地址后,<span style="font-family: Tahoma;">Jenkins</span>会自动验证地址Qƈl予提示?/span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;">点击<span style="color: red;">U色字体</span>部分?span style="font-family: Tahoma;">enter credential</span>链接Q进入页?/span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;">讄好访?span style="font-family: Tahoma;">SVN</span>库的用户名和密码后,点击<span style="font-family: Tahoma;">OK</span>按钮</span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;">讄成功。点?span style="font-family: Tahoma;">Close</span>按钮Q返回之前的<span style="font-family: Tahoma;">Source Code Management</span>面。此时不再有U色警告信息了?/span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;"><span style="color: black;"><span style="font-family: Tahoma;">3.2</span></span><span style="color: black;">Q配|自动构建的计划Q假设我们想让项目中每天</span><span style="color: black;"><span style="font-family: Tahoma;">12</span></span><span style="color: black;">点和晚上</span><span style="color: black;"><span style="font-family: Tahoma;">8</span></span><span style="color: black;">点自动构Zơ,只需要在</span><span style="color: black;"><span style="font-family: Tahoma;">Build Triggers</span></span><span style="color: black;">中选择</span><strong><span style="color: black;"><span style="font-family: Tahoma;">Build periodically</span></span><span style="color: black;">Qƈ?/span><span style="color: black;"><span style="font-family: Tahoma;">Schedule</span></span><span style="color: black;">中输?/span><span style="color: black;"><span style="font-family: Tahoma;"> 0 12,20 * * *</span></span><span style="color: black;">?/span></strong></span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;"><strong><span style="color: black;">我配|的是每?/span><span style="color: black;"><span style="font-family: Tahoma;">8</span></span><span style="color: black;">点自动构?/span></strong></span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;"><strong><span style="color: black;">注:</span><span style="color: black;"><span style="font-family: Tahoma;">Schedule</span></span><span style="color: black;">的配|规则是?/span><span style="color: black;"><span style="font-family: Tahoma;">5</span></span><span style="color: black;">个空格隔开的字W组成,从左到右分别代表Q分</span><span style="color: black;">?/span><span style="color: black;">?/span><span style="color: black;">?/span><span style="color: black;">q?/span><span style="color: black;"><span style="font-family: Tahoma;">*</span></span><span style="color: black;">代表所有,</span><span style="color: black;"><span style="font-family: Tahoma;">0 12,20 * * * </span></span><span style="color: black;">表示“在Q何年M月Q何天?/span><span style="color: black;"><span style="font-family: Tahoma;">12</span></span><span style="color: black;">?/span><span style="color: black;"><span style="font-family: Tahoma;">20</span></span><span style="color: black;">?/span><span style="color: black;"><span style="font-family: Tahoma;">0</span></span><span style="color: black;">?#8221;q行构徏?/span></strong></span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;"><span style="color: black;"><span style="font-family: Tahoma;">3.3</span></span><span style="color: black;">Q配|到q里Q可能有人发现在</span><span style="color: black;"><span style="font-family: Tahoma;">Build</span></span><span style="color: black;">配置节点Q有U色错误信息Q提C?/span></span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="color: black;"><span style="font-size: 16px; font-family: Tahoma;">Jenkins needs to know where your Maven2 is installed.</span></span><br /><span style="color: black;"><span style="font-size: 16px; font-family: Tahoma;">Please do so from the system configuration.</span></span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;"><span style="color: black;">是因?/span><span style="color: black;"><span style="font-family: Tahoma;">Jenkins</span></span><span style="color: black;">找不?/span><span style="color: black;"><span style="font-family: Tahoma;">maven</span></span><span style="color: black;">的原因,点击</span><span style="color: black;"><span style="font-family: Tahoma;">"system configuration"</span></span><span style="color: black;">Q是</span><span style="color: black;"><span style="font-family: Tahoma;">system configuration</span></span><span style="color: black;">?/span><span style="color: black;"><span style="font-family: Tahoma;">maven</span></span><span style="color: black;">配置中添?/span><span style="color: black;"><span style="font-family: Tahoma;">maven</span></span><span style="color: black;">目录?/span><span style="color: black;"><span style="font-family: Tahoma;">OK?/span></span></span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;">我设|了<span style="font-family: Tahoma;">JRE 6</span>?span style="font-family: Tahoma;">MAVEN 3</span>的安装目录?/span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;">点击左下角的<span style="font-family: Tahoma;">SAVE</span>按钮Q保存设|?/span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;"><span style="color: black;"><span style="font-family: Tahoma;">3.4</span></span><span style="color: black;">Q保存好所有配|后Q我们第</span><span style="color: black;"><span style="font-family: Tahoma;">1</span></span><span style="color: black;">?/span><span style="color: black;"><span style="font-family: Tahoma;">job</span></span><span style="color: black;">q是完成了?/span></span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;"><span style="color: black;"><span style="font-family: Tahoma;">3.5</span></span><span style="color: black;">Q创建第</span><span style="color: black;"><span style="font-family: Tahoma;">2</span></span><span style="color: black;">?/span><span style="color: black;"><span style="font-family: Tahoma;">job</span></span><span style="color: black;">Q配|和上面的配|相同。只需?/span><span style="color: black;"><span style="font-family: Tahoma;">svn</span></span>地址ҎQ?span style="color: #003399;"><span style="font-family: Tahoma;">http://localhost/svn/Web</span></span></span></p><h3><span style="font-size: 16px;">三、自动编?/span></h3><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;"><span style="color: black;">在经q上面的配置后,回到</span><span style="color: black;"><span style="font-family: Tahoma;">Jenkins</span></span><span style="color: black;">首页Q在首页可以看到刚才d?/span><span style="color: black;"><span style="font-family: Tahoma;">2</span></span><span style="color: black;">?/span><span style="color: black;"><span style="font-family: Tahoma;">job</span></span></span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="color: black;">点击?/span><span style="color: black;"><span style="font-family: Tahoma;">1</span></span><span style="color: black;">?/span><span style="color: black;"><span style="font-family: Tahoma;">job</span></span><span style="color: black;">后后面的</span><span style="color: black;"><span style="font-family: Tahoma;">"Schedule a build"</span></span><span style="color: black;">囄手动构徏Q点d后,会在左边?/span><span style="color: black;"><span style="font-family: Tahoma;">Build Queue</span></span><span style="color: black;">或?/span><span style="color: #003399;"><span style="font-family: Tahoma;">Build Executor Status</span></span><span style="color: black;">昄正在构徏的Q务,在自动构建完后,h面Q就可以看到构徏l果了,如何某个目构徏p|Q点击项目后面的构徏数字</span><span style="color: black;"><span style="font-family: Tahoma;">(</span></span><span style="color: black;">?/span><span style="color: black;"><span style="font-family: Tahoma;">1</span></span><span style="color: black;">开始递增</span><span style="color: black;"><span style="font-family: Tahoma;">)</span></span><span style="color: black;">q入目?/span><span style="color: black;"><span style="font-family: Tahoma;">"</span></span><span style="color: #003399;"><span style="font-family: Tahoma;">Console Output</span></span><span style="font-size: 16px;"><span style="color: black;"><span style="font-family: Tahoma;"> "</span></span><span style="color: black;">可以查看目构徏p|的原因。当然我们也可以配置把构建失败的l果发到邮箱?/span></span></p><p style="color: #333333; font-family: tahoma, 宋体; line-height: 22px; text-align: justify; widows: auto; background-color: #fafafc;"><span style="font-size: 16px;"><span style="color: black;">到目前ؓ止,</span><span style="color: black;"><span style="font-family: Tahoma;">1</span></span><span style="color: black;">个简单的自动构徏环境搭建好了,很简单吧?/span></span></p><img src ="http://www.aygfsteel.com/jjshcc/aggbug/425643.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/jjshcc/" target="_blank">Eric_jiang</a> 2015-06-12 10:49 <a href="http://www.aygfsteel.com/jjshcc/archive/2015/06/12/425643.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʡ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">կ</a>| <a href="http://" target="_blank">۽</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">ն</a>| <a href="http://" target="_blank">綫</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɾ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">޼</a>| <a href="http://" target="_blank">ذ</a>| <a href="http://" target="_blank">Ƕ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">״</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ϫ</a>| <a href="http://" target="_blank">˾</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ͷ</a>| <a href="http://" target="_blank">Ԫ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ƽԭ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>