diff --git a/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials.java b/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials.java index 23cca32f1..68f39df8a 100644 --- a/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials.java +++ b/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials.java @@ -656,6 +656,7 @@ public String getIconClassName() { } @SuppressWarnings("unused") // jelly + @Deprecated public boolean isApiUriSelectable() { return !GitHubConfiguration.get().getEndpoints().isEmpty(); } diff --git a/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java b/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java index 4cb595e13..3feb90e92 100644 --- a/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java +++ b/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java @@ -1838,6 +1838,7 @@ static ListBoxModel getPossibleApiUriItems() { * @return {@code true} if there is more than one GitHub endpoint configured. */ @SuppressWarnings("unused") // jelly + @Deprecated public boolean isApiUriSelectable() { return !GitHubConfiguration.get().getEndpoints().isEmpty(); } diff --git a/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java b/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java index ce2e3cc83..9650ae550 100644 --- a/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java +++ b/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java @@ -2235,6 +2235,7 @@ public ListBoxModel doFillApiUriItems() { return result; } + @Deprecated public boolean isApiUriSelectable() { return !GitHubConfiguration.get().getEndpoints().isEmpty(); } diff --git a/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials/config.jelly b/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials/config.jelly index da3ba7f86..7e764d260 100644 --- a/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials/config.jelly +++ b/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials/config.jelly @@ -5,16 +5,9 @@ - - - - - - - - - - + + + diff --git a/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials/help-apiUri.html b/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials/help-apiUri.html index d2a930aa1..3d80884d7 100644 --- a/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials/help-apiUri.html +++ b/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials/help-apiUri.html @@ -1,3 +1,4 @@

GitHub API endpoint such as https://github.example.com/api/v3/. + The list of servers is configured in the Manage Jenkins » Configure System » GitHub Enterprise Servers screen.

diff --git a/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator/config.jelly b/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator/config.jelly index 35e97264d..2cce417bc 100644 --- a/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator/config.jelly +++ b/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator/config.jelly @@ -1,18 +1,9 @@ - - - - - - - - - - - - + + + diff --git a/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator/help-apiUri.html b/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator/help-apiUri.html index a00e19905..446c7e2c1 100644 --- a/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator/help-apiUri.html +++ b/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator/help-apiUri.html @@ -1,4 +1,4 @@
- The server to connect to. The list of servers is configured in the Manage Jenkins » Configure - System » GitHub Enterprise Servers screen. + GitHub API endpoint such as https://github.example.com/api/v3/. + The list of servers is configured in the Manage Jenkins » Configure System » GitHub Enterprise Servers screen.
diff --git a/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource/config-detail.jelly b/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource/config-detail.jelly index 5b1c20e42..320855060 100644 --- a/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource/config-detail.jelly +++ b/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource/config-detail.jelly @@ -22,13 +22,9 @@ - - - - - - - + + + diff --git a/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource/help-apiUri.html b/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource/help-apiUri.html index a00e19905..446c7e2c1 100644 --- a/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource/help-apiUri.html +++ b/src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource/help-apiUri.html @@ -1,4 +1,4 @@
- The server to connect to. The list of servers is configured in the Manage Jenkins » Configure - System » GitHub Enterprise Servers screen. + GitHub API endpoint such as https://github.example.com/api/v3/. + The list of servers is configured in the Manage Jenkins » Configure System » GitHub Enterprise Servers screen.