随笔分类 - jenkins
摘要:获取jenkins job的配置文件 http://ip:port/job/jobName/config.xml
阅读全文
摘要:jenkins 发送testng测试结果: 1、构建后操作添加 publish testng results,没有的可以先去安装插件 2、邮箱内容配置如下 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>${PROJECT_NA
阅读全文
摘要:Jenkins 版本:2.346.1 接口调用报403,研究了一下发现了是jenkins的CSRF机制导致的,但是由于公司所用的jenkins版本较高,默认不支持关闭CSRF,所以需要在jenkins 控制台中手动关闭CSRF。 -Dhudson.security.csrf.GlobalCrumbI
阅读全文
摘要:邮箱服务器端口是587 解决方案: 启动脚本增加 -Dmail.smtp.starttls.enable=true -Dmail.smtp.ssl.trust=esmtp.*.com
阅读全文
摘要:原因:git上配置的 ssh key是root的,但jenkins配置的执行用户是jenkins,导致权限问题 解决方案一 解决方案二
阅读全文
摘要:1.参数化构建 2.增加环境变量 prepare an environment for the run,需要安装Environment Injector插件
阅读全文
摘要:构建maven项目:Maven Release Plug-in Plug-in 常用: ace-editor.jpianalysis-model-api.jpiantisamy-markup-formatter.jpiant.jpiapache-httpcomponents-client-4-api
阅读全文
摘要:def heads= ("git ls-remote -h git@gitlab.com:*.git").execute()def headlist=heads.text.readLines().collect{it.split()[1]};def list=[''];list.addAll(hea
阅读全文