ci 使用体会

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ci 使用体会相关的知识,希望对你有一定的参考价值。

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://[email protected]***.git
FATAL: Failed to fetch from ssh://[email protected]***.git
hudson.plugins.git.GitException: Failed to fetch from ssh://[email protected]***.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://[email protected]: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

以上是关于ci 使用体会的主要内容,如果未能解决你的问题,请参考以下文章

iOS .ipa 文件中 CI/CD 工具的参考

ngnix 配置CI框架 与 CI的简单使用

h5培训心得体会

在codeigniter中,大家使用smarty吗?

第一次课程设计报告体会

【Gitlab ci】 缓存