From 477d9e146de22d3f7f4f705d9ffee056ed598239 Mon Sep 17 00:00:00 2001 From: yashin Date: Thu, 5 Jul 2018 19:11:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=BC=BA=E5=88=B6=E8=A6=81?= =?UTF-8?q?=E6=B1=82webhook=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/gitee/jenkins/connection/GiteeConnectionConfig.java | 2 +- .../jenkins/connection/GiteeConnectionConfig/config.jelly | 5 +---- .../connection/GiteeConnectionConfig/config.properties | 1 + .../connection/GiteeConnectionConfig/config_zh_CN.properties | 5 +++-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/gitee/jenkins/connection/GiteeConnectionConfig.java b/src/main/java/com/gitee/jenkins/connection/GiteeConnectionConfig.java index 4edd830..8c8e12f 100644 --- a/src/main/java/com/gitee/jenkins/connection/GiteeConnectionConfig.java +++ b/src/main/java/com/gitee/jenkins/connection/GiteeConnectionConfig.java @@ -39,7 +39,7 @@ import static com.gitee.jenkins.gitee.api.GiteeClientBuilder.getAllGiteeClientBu @Extension public class GiteeConnectionConfig extends GlobalConfiguration { - private Boolean useAuthenticatedEndpoint = true; + private Boolean useAuthenticatedEndpoint = false; private List connections = new ArrayList<>(); private transient Map connectionMap = new HashMap<>(); diff --git a/src/main/resources/com/gitee/jenkins/connection/GiteeConnectionConfig/config.jelly b/src/main/resources/com/gitee/jenkins/connection/GiteeConnectionConfig/config.jelly index 6e3be10..2bdb74c 100644 --- a/src/main/resources/com/gitee/jenkins/connection/GiteeConnectionConfig/config.jelly +++ b/src/main/resources/com/gitee/jenkins/connection/GiteeConnectionConfig/config.jelly @@ -1,9 +1,6 @@ - - - - + diff --git a/src/main/resources/com/gitee/jenkins/connection/GiteeConnectionConfig/config.properties b/src/main/resources/com/gitee/jenkins/connection/GiteeConnectionConfig/config.properties index d77742c..544c0c5 100644 --- a/src/main/resources/com/gitee/jenkins/connection/GiteeConnectionConfig/config.properties +++ b/src/main/resources/com/gitee/jenkins/connection/GiteeConnectionConfig/config.properties @@ -12,3 +12,4 @@ Read.timeout.seconds=Read timeout (in seconds) Read.timeout.desc=The time to wait while receiving the response Test.Connection=Test Connection Testing=Testing... +Gitee.config=Gitee Configuration diff --git a/src/main/resources/com/gitee/jenkins/connection/GiteeConnectionConfig/config_zh_CN.properties b/src/main/resources/com/gitee/jenkins/connection/GiteeConnectionConfig/config_zh_CN.properties index a7ccf6b..5ec1dce 100644 --- a/src/main/resources/com/gitee/jenkins/connection/GiteeConnectionConfig/config_zh_CN.properties +++ b/src/main/resources/com/gitee/jenkins/connection/GiteeConnectionConfig/config_zh_CN.properties @@ -1,9 +1,9 @@ Gitee.connections=Gitee \u94FE\u63A5 -Enable.authentication.end.point=\u5141\u8BB8 '/project' \u4F5C\u4E3A\u9A8C\u8BC1\u540E\u7F00 +Enable.authentication.end.point=\u5F00\u542F '/project' \u8DEF\u7531\u9A8C\u8BC1 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 +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 Ignore.SSL.Certificate.Errors=\u5FFD\u7565 SSL \u8BC1\u4E66\u9519\u8BEF Connection.timeout.seconds=\u94FE\u63A5\u8D85\u65F6\u65F6\u95F4\uFF0C\u5355\u4F4D\u79D2 @@ -12,3 +12,4 @@ Read.timeout.seconds=\u8BFB\u53D6\u8D85\u65F6\u65F6\u95F4\uFF0C\u5355\u4F4D\u79D Read.timeout.desc=\u94FE\u63A5\u8BFB\u53D6\u8D85\u65F6\u65F6\u95F4 Test.Connection=\u6D4B\u8BD5\u94FE\u63A5 Testing=\u6D4B\u8BD5\u4E2D... +Gitee.config=Gitee \u914D\u7F6E