詹金斯配置 [英] Jenkins configuration

查看:132
本文介绍了詹金斯配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个GIT存储库。当我将GIT更改推入Gerrit时,会触发jenkins构建,如果成功,它会将代码合并到GIT存储库。



但是,Jenkins正在构建源代码GIT回购总是。它不会选择推入Gerrit的更改。



我应该在Gerrit / Jenkins中更改哪些设置?

解决方案

在git源代码管理部分的jenkins配置中,单击高级按钮并将您的refspec设置为 $ GERRIT_REFSPEC 提交的变更集。

I have a GIT repository. When I pushed a GIT change into Gerrit, it triggers a jenkins build and if successful, it merges the code to the GIT repository.

But, Jenkins is building the source from GIT repo always. It is not picking the change pushed into Gerrit.

What settings should I change in Gerrit/Jenkins ?

解决方案

In the jenkins configuration for the git Source Code Management section, click the advanced button and set your refspec to $GERRIT_REFSPEC which will pick up the change set that was commit.

这篇关于詹金斯配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆