增加中文帮助信息
This commit is contained in:
parent
6311f3c475
commit
eac14e0311
13
pom.xml
13
pom.xml
|
@ -14,7 +14,7 @@
|
|||
</properties>
|
||||
|
||||
<artifactId>gitee-jenkins-plugin</artifactId>
|
||||
<version>1.0.4-SNAPSHOT</version>
|
||||
<version>1.0.5-SNAPSHOT</version>
|
||||
<name>Gitee Jenkins Plugin</name>
|
||||
<url>https://wiki.jenkins-ci.org/display/JENKINS/Gitee+Jenkins+Plugin</url>
|
||||
<packaging>hpi</packaging>
|
||||
|
@ -27,11 +27,6 @@
|
|||
</licenses>
|
||||
|
||||
<developers>
|
||||
<developer>
|
||||
<id>owenmehegan</id>
|
||||
<name>Owen Mehegan</name>
|
||||
<email>owen@nerdnetworks.org</email>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>Yashin</id>
|
||||
<name>Yashin Luo</name>
|
||||
|
@ -53,9 +48,9 @@
|
|||
</distributionManagement>
|
||||
|
||||
<scm>
|
||||
<connection>scm:git:ssh://gitee.com:yashin/Gitee-Plugin.git</connection>
|
||||
<developerConnection>scm:git:git@gitee.com:yashin/Gitee-Plugin.git</developerConnection>
|
||||
<url>https://gitee.com/yashin/Gitee-Plugin.git</url>
|
||||
<connection>scm:git:ssh://gitee.com:oschina/Gitee-Jenkins-Plugin.git</connection>
|
||||
<developerConnection>scm:git:git@gitee.com:oschina/Gitee-Jenkins-Plugin.git</developerConnection>
|
||||
<url>https://gitee.com/oschina/Gitee-Jenkins-Plugin.git</url>
|
||||
<tag>HEAD</tag>
|
||||
</scm>
|
||||
<!--get every artifact through repo.jenkins-ci.org, which proxies all the artifacts that we need-->
|
||||
|
|
|
@ -82,8 +82,8 @@ public abstract class AbstractWebHookTriggerHandler<H extends WebHook> implement
|
|||
List<URIish> uris = new ArrayList<URIish>();
|
||||
try {
|
||||
if (hook.getRepository() != null) {
|
||||
uris.add(new URIish(hook.getRepository().getGitSshUrl()));
|
||||
uris.add(new URIish(hook.getRepository().getGitHttpUrl()));
|
||||
uris.add(new URIish(hook.getRepository().getGitSshUrl()));
|
||||
}
|
||||
// uri 需与当前项目仓库个url一致,避免触发多个构建
|
||||
for (RemoteConfig remote : gitSCM.getRepositories()) {
|
||||
|
@ -95,7 +95,7 @@ public abstract class AbstractWebHookTriggerHandler<H extends WebHook> implement
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
return uris.get(0);
|
||||
} catch (URISyntaxException e) {
|
||||
LOGGER.log(Level.WARNING, "could not parse URL");
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?jelly escape-by-default='true'?>
|
||||
<j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form" xmlns:st="jelly:stapler">
|
||||
<f:entry title="${%API token}" field="apiToken">
|
||||
<f:entry title="${%API.token}" field="apiToken" description="${%Credentials.desc}">
|
||||
<f:password/>
|
||||
</f:entry>
|
||||
<st:include page="id-and-description" class="${descriptor.clazz}"/>
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
API.token=Gitee APIV5 Token
|
||||
Credentials.desc=APIV5 Token for accessing Gitee\uFF08generate from https://gitee.com/profile/personal_access_tokens\uFF09
|
|
@ -0,0 +1,2 @@
|
|||
API.token=Gitee APIV5 \u79C1\u4EBA\u4EE4\u724C
|
||||
Credentials.desc=Gitee API V5 \u7684\u79C1\u4EBA\u4EE4\u724C\uFF08\u83B7\u53D6\u5730\u5740 https://gitee.com/profile/personal_access_tokens\uFF09
|
|
@ -4,7 +4,7 @@ Connection.name=\u94FE\u63A5\u540D
|
|||
Gitee.host.URL=Gitee \u57DF\u540D URL
|
||||
Gitee.host.desc=Gitee \u57DF\u540D\u5B8C\u6574URL\u5730\u5740 (\u4F8B\u5982 http://gitee.com)
|
||||
Credentials=\u8BC1\u4E66\u4EE4\u724C
|
||||
Credentials.desc=Gitee API V5 \u7684\u8BC1\u4E66\u4EE4\u724C\uFF08\u83B7\u53D6\u5730\u5740 https://gitee.com/profile/personal_access_tokens\uFF09
|
||||
Credentials.desc=Gitee API V5 \u7684\u79C1\u4EBA\u4EE4\u724C\uFF08\u83B7\u53D6\u5730\u5740 https://gitee.com/profile/personal_access_tokens\uFF09
|
||||
Ignore.SSL.Certificate.Errors=\u5FFD\u7565 SSL \u8BC1\u4E66\u9519\u8BEF
|
||||
Connection.timeout.seconds=\u94FE\u63A5\u8D85\u65F6\u65F6\u95F4\uFF0C\u5355\u4F4D\u79D2
|
||||
Connection.timeout.desc=\u5EFA\u7ACB\u94FE\u63A5\u8D85\u65F6\u65F6\u95F4
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?jelly escape-by-default='true'?>
|
||||
<j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form">
|
||||
<f:entry title="${%Gitee.connection}" field="giteeConnection">
|
||||
<f:entry title="${%Gitee.connection}" field="giteeConnection" help="/plugin/gitee-plugin/help/help-gitee-connection.html">
|
||||
<f:select/>
|
||||
</f:entry>
|
||||
</j:jelly>
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
<p>
|
||||
包括或排查的分支名用半角逗号分隔,如果两项都为空,则允许所有分支触发构建。
|
||||
对于 <b>Pull Request</b>, 只允许包含或排查目标分支。
|
||||
</p>
|
|
@ -0,0 +1,3 @@
|
|||
<p>
|
||||
你可以以此构建名区分 Gitee 上同一个 commit 上不同的构建名。
|
||||
</p>
|
|
@ -0,0 +1,8 @@
|
|||
<div>
|
||||
<div>
|
||||
<p>允许触发构建的目标分支的正则表达式匹配,如果为空,则所有的分支都可以触发构建。</p>
|
||||
<p>比如:</p>
|
||||
<pre># 允许包含 debug 或 release 的分支名触发构建: (.*debug.*|.*release.*) </pre>
|
||||
<pre># 过滤所有包含 `Release` 或者 `release` 的分支名触发构建: ^(?:(?![R|r]elease).)*$ </pre>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,4 @@
|
|||
<div>
|
||||
<p>允许评论构建结构到 Gitee Pull Request.</p>
|
||||
<p>您可以构建成功,失败或者中断自定义评论信息。</p>
|
||||
</div>
|
|
@ -0,0 +1,3 @@
|
|||
<div>
|
||||
<p>所有分支都可以触发构建。</p>
|
||||
</div>
|
|
@ -0,0 +1,5 @@
|
|||
<div>
|
||||
<div>
|
||||
<p>匹配此正则表达式的 Pull Request 评论将触发构建。</p>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,8 @@
|
|||
<div>
|
||||
<div>
|
||||
<p>仅适用于 pipelines.</p>
|
||||
<p>When filled, a 'pending' build status with the given build name is published to Gitee when the pipeline is
|
||||
triggered. Further status updates should be defined in pipeline steps.</p>
|
||||
<p>For other types of jobs the build name is taken from 'Publish build status to Gitee commit' post-build action.</p>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,5 @@
|
|||
<div>
|
||||
<div>
|
||||
<p>如果设置了此选项,则只能携带一致的 Token 的 WebHook 可以触发构建。</p>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,6 @@
|
|||
<div>
|
||||
Send build result to Gitee.
|
||||
It will be visible in the commit and/or merge request UI as appropriate.
|
||||
You must have at least one Gitee connection/server configured in the Jenkins global configuration.
|
||||
If you have more than one, select the appropriate one from the 'Gitee connection' dropdown menu in the job configuration.
|
||||
</div>
|
Loading…
Reference in New Issue