Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-31462] GitHub Enterprise Servers validation #10

Merged
merged 2 commits into from
Nov 23, 2015

Conversation

recena
Copy link
Contributor

@recena recena commented Nov 15, 2015

JENKINS-31462

downstream jenkinsci/github-api-plugin#5 (really hub4j/github-api#232)

@reviewbybees especially, @jglick

@ghost
Copy link

ghost commented Nov 15, 2015

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

@jenkinsadmin
Copy link
Member

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

public FormValidation doCheckApiUrl(@QueryParameter String value) {
if (Util.fixEmptyAndTrim(value) == null) {
return FormValidation.error("You must specify the API URI");
public FormValidation doCheckApiUri(@QueryParameter String apiUri) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to add @Restricted to new Stapler methods

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oleg-nenashev Really?

/**
 * Indicates that a particular element is really deprecated and that the access to it
 * is subject to the additional restrictions.
 *
 * <p>
 * These annotations and restrictions introduced by them are enforced by the
 * "access-modifier-checker" mojo. 
 *
 * @author Kohsuke Kawaguchi
 */

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oleg-nenashev mean Restricted.NO_EXTERNAL_USAGE (AFAIR)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KostyaSha Thanks. Done. /cc @oleg-nenashev

@oleg-nenashev
Copy link
Member

@recena
Are you sure that the name is always required?
hub4j/github-api#226 proposes a valid PR with OAuth token only

@recena
Copy link
Contributor Author

recena commented Nov 16, 2015

@oleg-nenashev Add a GH Enterprise server is not related to OAuth. In this form we are adding GHE servers (name + apiUrl). Only that.

@oleg-nenashev
Copy link
Member

🐝

@recena recena merged commit 7bf7ae0 into jenkinsci:master Nov 23, 2015
@recena
Copy link
Contributor Author

recena commented Nov 23, 2015

This PR should be reverted!

@recena
Copy link
Contributor Author

recena commented Nov 23, 2015

The changes are not in master. @jglick Is it possible to re-open this PR?

dubrsl pushed a commit to dubrsl/github-branch-source-plugin that referenced this pull request Oct 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants