
持续集成
ant,maven,jenkins
糖冰橙
努力确实会上瘾
展开
-
jenkins 设置邮件
1、Jenkins->系统管理->系统设置;2、可以勾选 “通过发送测试邮件配置” 测试此配置能否连通;如果报错:Failed to send out e-mailcom.sun.mail.smtp.SMTPSendFailedException: 501 mail from address must be same as authorization user; nested exception is: com.sun.mail.smtp.SMTPSenderFaile.原创 2021-04-10 10:42:53 · 574 阅读 · 0 评论 -
启动jenkins报错:Failed to start LSB: Jenkins Automation Server
环境linux现象首次安装jenkins后,启动报错[root@test-210-50 jenkins]# systemctl start jenkins.service Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.原因查看详细原原创 2021-04-09 08:49:24 · 1250 阅读 · 0 评论 -
Jenkins使用时间插件Date Parameter
1、安装插件Date Parameter首先在Jenkins的插件管理中安装Date Parameter插件:Manage Jenkins --> Plugin Manager --> Avaiable中搜索Date Parameter。安装完成后重启jenkins;2、使用参数添加参数定义参数# 语法You can create a 'default value' in one of two forms.1. Java LocalDate or Lo原创 2020-06-27 14:35:14 · 4870 阅读 · 0 评论 -
Jenkins连接gitlab报错:returned status code 128
文章目录问题原因解决方案问题在项目中配置git仓库地址时,报无权限:Failed to connect to repository : Command "git ls-remote -h git@xxx.git HEAD" returned status code 128:stdout:stderr: Host key verification failed.fatal: Could ...原创 2020-04-10 15:39:02 · 24150 阅读 · 1 评论 -
windows下Jenkins的搭建
可以直接在jenkins官方网站上:http://jenkins-ci.org/下载jenkins的文件jenkins.war文件有两种启动方法。首先保证系统中已经安装了jdk,最好是jdk1.5以上。第一种启动方法,切换到jenkins.war存放的目录,输入如下命令:$ java -jar jenkins.war然后在浏览器中(推荐用火狐)输入http://localh原创 2014-07-18 21:57:15 · 2260 阅读 · 0 评论 -
jenkins配置邮件报错:501 mail from address must be same as authorization user
jenkins配置文件的时候,遇到如下报错:我的配置是这样的:最后发现是jenkins url下面的系统管理员邮件地址没写,填写与用户名一致就可以了。原创 2015-04-08 19:31:26 · 19044 阅读 · 2 评论 -
Ant 构建测试工程的脚本
Ant 是一种基于Java的build工具。原创 2014-06-03 11:38:37 · 1203 阅读 · 0 评论 -
ant编译时报错:程序包junit.framework不存在
代码附带率测试的时候,需要用ant编译工程,但编译不通过,报程序包junit.framework不存在的错; 可是直接运行junit测试的时候没有任何问题。最后发现将junit的jar包复制到ANT_HOME的lib目录下就能正常编译了。原因上网查了下看到这段描述:In order for code completion in eclipse to function you m原创 2015-05-24 17:25:36 · 6835 阅读 · 0 评论 -
ant编译时warning: ‘includeantruntime’ was not set
ant编译工程时,一直有一个警告:warning: 'includ eantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds 如果你的build文件配置不当,必定会出现这个问题。可以看到图中是build.xml文件中的31行有问题。原创 2015-05-24 20:21:25 · 1038 阅读 · 0 评论 -
maven的环境搭建
1 下载maven并配置1.1 官网下载地址: http://maven.apache.org/download.cgi1.2 下载后解压到本地1.3 配置环境变量: 配置 MAVEN_HOME并将MAVEN_HOME 添加到系统 PATH变量中。 变量: MAVEN_HOME 值:D:\maven-3.2.3 设置原创 2015-07-19 21:52:09 · 478 阅读 · 0 评论