Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37655

Replace Mailer.DescriptorImpl.smtpAuthPassword with Credentials

      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

          Jesse Glick created issue -

          Chris Kilding added a comment -

          I've started an implementation of this here: https://github.com/jenkinsci/mailer-plugin/pull/88 

          Chris Kilding added a comment - I've started an implementation of this here: https://github.com/jenkinsci/mailer-plugin/pull/88  
          Kenneth Rogers made changes -
          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. ]

            Unassigned Unassigned
            jglick Jesse Glick
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: