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

Global Plugin Configuration #67

Open
tf opened this Issue Feb 4, 2013 · 8 comments

Comments

Projects
None yet
6 participants
@tf

tf commented Feb 4, 2013

Hey,

while fields from a template called global.erb are displayed on Jenkins' global configuration page, I could not yet figure out how to persist or access information given in those fields.

Any input would be greatly appreciated.

Cheers
Tim

@whatwho

This comment has been minimized.

Show comment
Hide comment
@whatwho

whatwho Feb 22, 2013

+1

a good example on how to display a global configuration block, persist submitted data, and use it would be appreciated!

Best,
m

whatwho commented Feb 22, 2013

+1

a good example on how to display a global configuration block, persist submitted data, and use it would be appreciated!

Best,
m

@tf

This comment has been minimized.

Show comment
Hide comment
@tf

tf May 29, 2013

Any update on this?

tf commented May 29, 2013

Any update on this?

@whatwho

This comment has been minimized.

Show comment
Hide comment
@whatwho

whatwho May 29, 2013

+1 again :)

whatwho commented May 29, 2013

+1 again :)

@elvanja

This comment has been minimized.

Show comment
Hide comment
@elvanja

elvanja Oct 4, 2013

https://github.com/elvanja/jenkins-gitlab-hook-plugin/blob/feature/automatic_project_per_branch/models/gitlab_web_hook_root_action_descriptor.rb

I've managed to get the configuration to save and load after restart.
But, the information is not displayed either, and it can't be accessed by the rest of the plugin.
More details @ http://stackoverflow.com/questions/19131842/jenkins-global-configuration-for-a-ruby-plugin

I can write a workaround, but it would be ugly as hell.
I tried writing various versions of descriptors, but the problem persists.

+1 to the issue

Any help appreciated!

elvanja commented Oct 4, 2013

https://github.com/elvanja/jenkins-gitlab-hook-plugin/blob/feature/automatic_project_per_branch/models/gitlab_web_hook_root_action_descriptor.rb

I've managed to get the configuration to save and load after restart.
But, the information is not displayed either, and it can't be accessed by the rest of the plugin.
More details @ http://stackoverflow.com/questions/19131842/jenkins-global-configuration-for-a-ruby-plugin

I can write a workaround, but it would be ugly as hell.
I tried writing various versions of descriptors, but the problem persists.

+1 to the issue

Any help appreciated!

@theunraveler

This comment has been minimized.

Show comment
Hide comment
@theunraveler

theunraveler commented Oct 23, 2013

+1 also

@robsweet

This comment has been minimized.

Show comment
Hide comment
@robsweet

robsweet Aug 11, 2014

+1 I'm trying to write a plugin and struggling with this as well. C'mon, guys. Is it that hard for somebody who knows how this works to write a quick example for us?

robsweet commented Aug 11, 2014

+1 I'm trying to write a plugin and struggling with this as well. C'mon, guys. Is it that hard for somebody who knows how this works to write a quick example for us?

@n-rodriguez

This comment has been minimized.

Show comment
Hide comment
@n-rodriguez

n-rodriguez commented Sep 12, 2014

+1

@tf

This comment has been minimized.

Show comment
Hide comment
@tf

tf Sep 20, 2014

Thanks to @n-rodriguez there is now an example of handling global configuration in the jenkins-mysql-job-databases-plugin.

tf commented Sep 20, 2014

Thanks to @n-rodriguez there is now an example of handling global configuration in the jenkins-mysql-job-databases-plugin.

@elvanja elvanja referenced this issue Sep 28, 2014

Closed

Git 2x support #38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment