增加refspec配置帮助

This commit is contained in:
yashin 2018-07-09 19:46:49 +08:00
parent e1b7637d59
commit adc6bf8691
4 changed files with 10 additions and 2 deletions

View File

@ -184,7 +184,7 @@ In the *Source Code Management* section:
1. Click *Git*
2. Enter your *Repository URL*, such as ``git@your.gitlab.server:gitlab_group/gitlab_project.git``
1. In the *Advanced* settings, set *Name* to ``origin`` and *Refspec* to ``+refs/heads/*:refs/remotes/origin/* +refs/pull/*/MERGE:refs/remotes/origin/pull/*``
1. In the *Advanced* settings, set *Name* to ``origin`` and *Refspec* to ``+refs/heads/*:refs/remotes/origin/* +refs/pull/*/MERGE:refs/pull/*/MERGE``
3. In *Branch Specifier* enter:
1. For single-repository workflows: ``origin/${gitlabSourceBranch}``
2. For forked repository workflows: ``merge-requests/${gitlabMergeRequestIid}``

View File

@ -1,7 +1,7 @@
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core"
xmlns:f="/lib/form">
<f:entry title="${%Enabled.Gitee.Triggers}">
<f:entry title="${%Enabled.Gitee.Triggers}" help="/plugin/gitee-plugin/help/help-pull-request-refspec.html">
<table>
<f:entry title="${%Push}" field="triggerOnPush">
<f:checkbox default="true"/>

View File

@ -0,0 +1,4 @@
<p>
If enable Pull Request trigger, you need to set configuration in
Configure -> Source Code Management -> Git -> Advanced -> Refspec input "refs/heads/*:refs/remotes/origin/* +refs/pull/*/MERGE:refs/pull/*/MERGE`"
</p>

View File

@ -0,0 +1,4 @@
<p>
如开启 <b>Pull Request</b> 相关触发构建策略,需调整 Git 源码管理配置:
当前构建任务配置 -> 源码管理 -> Git -> 高级 -> Refspec 输入 "+refs/heads/*:refs/remotes/origin/* +refs/pull/*/MERGE:refs/pull/*/MERGE"
</p>