ci 使用体会
2024-10-19 14:28:51
1、在git review后,必须前一天commit先merge后,下一个commit 才能merge,不然就会出现merge pending的状态。
2、jenkins的gerrit trigger的项目,只能是提交代码的时候才能出发,手动的话就会无效,报错为
Started by user mustang
Building in workspace /opt/jenkins-1.569-0/apps/jenkins/jenkins_home/jobs/mustang-auto/workspace
Fetching changes from the remote Git repository
Fetching upstream changes from ssh://jenkins@***.git
FATAL: Failed to fetch from ssh://jenkins@***.git
hudson.plugins.git.GitException: Failed to fetch from ssh://jenkins@***.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:612)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:836)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:861)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1252)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530)
at hudson.model.Run.execute(Run.java:1732)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:234)
Caused by: hudson.plugins.git.GitException: Command "fetch -t ssh://jenkins@9.123.107.9:29418/mustang-web.git $GERRIT_REFSPEC" returned status code 128:
stdout:
stderr: fatal: Couldn't find remote ref $GERRIT_REFSPEC at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:981)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:920)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.fetch(CliGitAPIImpl.java:187)
at hudson.plugins.git.GitAPI.fetch(GitAPI.java:229)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:610)
... 10 more
参考资料:
http://openwares.net/linux/git_gerrit_gradle_jenkins_integration.html
最新文章
- xml note
- Cocos2d-x 3.2 学习笔记(四)学习打包Android平台APK!
- 第二章 部署war包到tomcat
- 获取手机通讯录--ios
- SpringMVC学习系列(7) 之 格式化显示
- enhance convenience rather than contribute to the fundamental power of the language
- initComponents()方法
- 戴文的Linux内核专题:10配置内核(6)
- jquery 连写注释;siblings() 方法;jQuery 的3种滑动方法;slideUp()向上滑动;slideDown()向下滑动;slideToggle()来回滑动
- javascript笔记02:严格模式的特定要求
- Windows系统下的adb 配置
- eclipse : java项目中的web.xml( Deployment Descriptor 部署描述文件 )配置说明
- Java中 &;&;与&;,||与|的区别
- Layout 不可思议(二)—— 两侧定宽的三列布局
- 初识Haskell 二:基本操作符、类型Type、数据结构
- Servlet校验密码之Mariadb篇
- linux/centos elasticsearch 环境搭建 安装 运行 使用
- 进程有一个全局变量i,还有有两个线程。i++在两个线程里边分别执行100次,能得到的最大值和最小值分别是多少?
- phpMyAdmin - Error
- The Kernel Boot Process.内核引导过程
热门文章
- Dewey – 标记和搜索 Chrome 浏览器书签
- Teehan &; Lax 发布 iOS 7 GUI PSD 模板,免费下载
- Linux基本操作命令总结
- Web Service常识
- EPANET中读取INPUT文件的函数文件——INPUT1.C/INPUT2.C/INPUT3.C
- 15个私有云上的DevOps 开源工具
- [Solution] 使用Autofac在MVC、Web API、WCF中实现IOC
- android sdk 镜像
- JavaScript来实现打开链接页面(转载)
- Java中处理异常中return关键字