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

Unable to set credentials with CasC plugin

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Component/s: mailer-plugin
    • Environment:
      - Jenkins version: 2.152
      - Mailer plugin version: 1.22
      - JCasC plugin version: 1.3
      - OS: Linux
    • Similar Issues:
    • Released As:
      mailer-1.25

      Description

      There is no possibility to set mailer credentials "as code". Jenkins Configuration as Code handles smtpHost, smtpPort and useSsl fields, but it doesn't handle useSMTPAuth, smtpAuthUserName and smtpAuthPasswordSecret fields.

      Expected result

      JCasC plugin should handle useSMTPAuth, smtpAuthUserName and smtpAuthPasswordSecret fields.

      Example configuration
      unclassified:
        mailer:
          adminAddress: admin <admin@dummy.tld>
          replyToAddress: admin <admin@dummy.tld>
          charset: UTF-8
      
          smtpHost: smtp.mailgun.org
          smtpPort: 587
          useSsl: false
      
          useSMTPAuth: true
          smtpAuthUserName: XXXXX@XXXXX.mailgun.org
          smtpAuthPasswordSecret: XXXXX

        Attachments

          Issue Links

            Activity

            Hide
            damlys Damian Łysiak added a comment -

            Many thanks in advance for somebody involved in this improvement  

            Show
            damlys Damian Łysiak added a comment - Many thanks in advance for somebody involved in this improvement  
            Hide
            alecharp Adrien Lecharpentier added a comment -

            I'm not sure mailer is compatible with CasC until https://github.com/jenkinsci/mailer-plugin/pull/39 is integrated. 

            I'm in the process of its review. 

            Show
            alecharp Adrien Lecharpentier added a comment - I'm not sure mailer is compatible with CasC until https://github.com/jenkinsci/mailer-plugin/pull/39  is integrated.  I'm in the process of its review. 
            Hide
            fcojfernandez Francisco Fernández added a comment -

            Discussed with Adrien Lecharpentier: I will try to land  https://github.com/jenkinsci/mailer-plugin/pull/39 in a new PR adding some tests for JCasC 

            Show
            fcojfernandez Francisco Fernández added a comment - Discussed with Adrien Lecharpentier : I will try to land   https://github.com/jenkinsci/mailer-plugin/pull/39  in a new PR adding some tests for JCasC 

              People

              • Assignee:
                fcojfernandez Francisco Fernández
                Reporter:
                damlys Damian Łysiak
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: