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

No mail sent because wrong credentials are used after upgrade to 2.85

    • 2.86

      After Update email-ext-plugin to 2.85 the credentials are converted but if a mail should send it appears an login error on mail server because it use a different user with password: null value

      see Github comment: https://github.com/jenkinsci/email-ext-plugin/pull/325#issuecomment-974163307

      I try to reproduce it with simple steps the days

          [JENKINS-67220] No mail sent because wrong credentials are used after upgrade to 2.85

          Alex Earl added a comment -

          I think I can reproduce this, I will work on a solution.

          Alex Earl added a comment - I think I can reproduce this, I will work on a solution.

          Also have the same problem after updating the plugin.

          I had to create the credentials again to make them work. The automatically converted ones did not work.

          Matthias Klein added a comment - Also have the same problem after updating the plugin. I had to create the credentials again to make them work. The automatically converted ones did not work.

          Diego Cerna added a comment -

          I was trying to find a workaround and noticed that the credentials are not used if the scope is set to System, is it expected for them to have a global scope?

          A test with credentials using global scope succeeded

          Diego Cerna added a comment - I was trying to find a workaround and noticed that the credentials are not used if the scope is set to System, is it expected for them to have a global scope? A test with credentials using global scope succeeded

          Alex Earl added a comment -

          System credentials are normally used for things outside of jobs, e.g., background processes like SCM polling and such (at least this is my understanding). The plugin checks global credentials. As for the issue this ticket describes, I believe the problem is that the credentials can't be found during the job for some reason. I am still trying to understand the credentials resolution flow so I can understand why the credentials are not found even though they are there.

          Alex Earl added a comment - System credentials are normally used for things outside of jobs, e.g., background processes like SCM polling and such (at least this is my understanding). The plugin checks global credentials. As for the issue this ticket describes, I believe the problem is that the credentials can't be found during the job for some reason. I am still trying to understand the credentials resolution flow so I can understand why the credentials are not found even though they are there.

          Jonathan added a comment -

          I have the same problem, I had to revert to 2.84 as 2.85 does not read the credentials.

          Jonathan added a comment - I have the same problem, I had to revert to 2.84 as 2.85 does not read the credentials.

          Basil Crow added a comment -

          Fixed in jenkinsci/email-ext-plugin#332. Released in 2.86.

          Basil Crow added a comment - Fixed in jenkinsci/email-ext-plugin#332 . Released in 2.86 .

          Alex Hendriks added a comment - - edited

          Tested, but first test failed. Went back to 2.84. Manually deleted old (auto created) credentials from the credential store (created by 2.85 version a few weeks ago). Updated again to 2.86 and this time it works! Emails are send again. Thx for the fix slide_o_mix !

           

          Alex Hendriks added a comment - - edited Tested, but first test failed. Went back to 2.84. Manually deleted old (auto created) credentials from the credential store (created by 2.85 version a few weeks ago). Updated again to 2.86 and this time it works! Emails are send again. Thx for the fix slide_o_mix !  

          Alex Earl added a comment -

          Sorry for this issue. I had tested the upgrade path before the 2.85, but I must have missed something.

          Alex Earl added a comment - Sorry for this issue. I had tested the upgrade path before the 2.85, but I must have missed something.

            slide_o_mix Alex Earl
            mcmics Michael Suhr
            Votes:
            4 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: