-
Improvement
-
Resolution: Unresolved
-
Major
Mailer.DescriptorImpl.smtpAuthPassword is currently a Secret. It should be deprecated and switched to use the credentials API for more flexible management.
[JENKINS-37655] Replace Mailer.DescriptorImpl.smtpAuthPassword with Credentials
Comment |
[ To borrow [~vlatombe]'s directions for maintaining backwards compatibility when I did this migration with a closed source plugin: To handle the migration of old data, keep the old fields with {{transient}} and deprecate them. Then you'll need to implement {{protected Object readResolve() { }} {{ // Migration code }} {{ return this; }} {{} }} in order to create credentials from prior username/password, then set these to null to do it only once. ] |