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

use GlobalConfiguration extension point to store all global config #68

Merged
merged 1 commit into from
Aug 17, 2015

Conversation

lanwen
Copy link
Member

@lanwen lanwen commented Aug 12, 2015

this simplifies resulting config classes and xml-files

new config looks like

<?xml version='1.0' encoding='UTF-8'?>
<github-plugin-configuration plugin="github@1.13.0-SNAPSHOT">
  <configs>
    <github-server-config>
      <apiUrl>https://api.github.com</apiUrl>
      <manageHooks>true</manageHooks>
      <credentialsId>a06436b7-7862-41fd-b7dc-3fec57c81f14</credentialsId>
    </github-server-config>
  </configs>
  <hookUrl>http://some.proxy.example.com/webhook</hookUrl>
</github-plugin-configuration>

(no migration from #65)

inspired by jenkinsci/envinject-plugin#57

Review on Reviewable

@jenkinsadmin
Copy link
Member

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

@lanwen lanwen force-pushed the global_conf branch 3 times, most recently from 72fd2fa to 3ca8885 Compare August 14, 2015 15:22
@KostyaSha
Copy link
Member

@oleg-nenashev cc

@KostyaSha KostyaSha changed the title use GlobalConfiguration as extension point to store all global config use GlobalConfiguration extension point to store all global config Aug 14, 2015
@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<com.cloudbees.jenkins.GitHubPushTrigger_-DescriptorImpl plugin="github@1.13.0-SNAPSHOT"/>
Copy link
Member

Choose a reason for hiding this comment

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

Should not be a SNAPSHOT. 1.12?

Copy link
Member Author

Choose a reason for hiding this comment

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

it can be any. It's just current build version. (its not affect tests)

Copy link
Member

Choose a reason for hiding this comment

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

Please use the released version. Otherwise it may be hard to triangulate migration causes, etc.

this simplifies resulting config classes and xml-files
@oleg-nenashev
Copy link
Member

👍

public void setConfigs(List<GitHubServerConfig> configs) {
this.configs = configs;
}

public List<GitHubServerConfig> getConfigs() {
return configs;
Copy link
Member

Choose a reason for hiding this comment

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

FindBugs will complain about the internal implementation exposure

Copy link
Member Author

Choose a reason for hiding this comment

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

will think about it on find bugs stage

Copy link
Member

Choose a reason for hiding this comment

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

agreed

@KostyaSha
Copy link
Member

👍

KostyaSha added a commit that referenced this pull request Aug 17, 2015
use GlobalConfiguration extension point to store all global config
@KostyaSha KostyaSha merged commit 52c7975 into jenkinsci:master Aug 17, 2015
@lanwen lanwen deleted the global_conf branch August 17, 2015 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants