Migrating plugin configuration when installing updating plugin

17 views
Skip to first unread message

Antonio Osorio

unread,
Sep 20, 2017, 6:44:54 PM9/20/17
to jenkin...@googlegroups.com
Hi,

I would like to work on https://issues.jenkins-ci.org/browse/JENKINS-15925. As suggested on https://github.com/jenkinsci/ec2-plugin/pull/28, I want to migrate the Security Groups value of the current configuration to the new format (to use pipe “|” as a separator instead of commas “,") when installing the plugin.

Is there a way to execute this migration when the plugin is installed if it comes from an old enough version? If so, links to documentation/code of plugins that do this would be greatly appreciated. 

Regards,

Antonio

Slide

unread,
Sep 20, 2017, 6:59:51 PM9/20/17
to jenkin...@googlegroups.com
If you are looking to "upgrade" settings, the best way to do it is via the readResolve. You can see information about it here: https://wiki.jenkins.io/display/JENKINS/Hint+on+retaining+backward+compatibility


--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/8FA48AAB-5735-4694-A4AB-B550805DE86A%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages