Re: About SMTPSendFailedException

2019-09-25 Thread Ajij Shaikh
Hey,

It worked for me when I use version 1.23 of mailer thanks for help!

Thanks,
Ajij

On Wed, Sep 25, 2019 at 1:42 PM Adrien Lecharpentier <
adrien.lecharpent...@gmail.com> wrote:

> Hello,
>
> I'm wondering which version of the Mailer plugin you are using on your
> instance.
> Is it possible that you are using a version between 1.25 and 1.27 (both
> included)?
> If so, please upgrade to 1.28 because you might be facing
> https://issues.jenkins-ci.org/browse/JENKINS-59430.
>
> BR,
> -- Adrien
>
> Le mer. 25 sept. 2019 à 09:25, Ajij Shaikh  a
> écrit :
>
>> Hey,
>>
>> I am trying Jenkins for email notification please check below
>> configuration and suggest the solution for it -
>>
>> 1. under manage Jenkins -> configure system I have set the configuration
>> PFB screenshot -
>>
>> 2. On the same page when I check below box and give email id there to
>> test connection then it sends mail successfully
>>
>> Test configuration by sending a test e-mail
>>
>> But this fails when we create the job and add mail id to post build
>> actions -> Email notification -> recipient
>> and check the box PFA screenshot for that
>> Send e-mail for every unstable build and Send separate e-mails to
>> individuals who broke the build
>>
>>
>> 3. and trigger to a failed build
>>
>> 4. Unable to send the email see the stack trace of the build ---
>>
>>
>> Started by user ajij 
>> Running as SYSTEM
>> Building in workspace /var/lib/jenkins/workspace/test1
>> [test1] $ /bin/sh -xe /tmp/jenkins2681186595655127592.sh
>> + [ -f  ]
>> + echo  not found.
>>  not found.
>> + exit 1
>> Build step 'Execute shell' marked build as failure
>> Sending e-mails to: ajijsha...@gofynd.com
>> ERROR: 530-5.5.1 Authentication Required. Learn more at
>> 530 5.5.1  https://support.google.com/mail/?p=WantAuthError 
>> m68sm4994696pfb.122 - gsmtp
>>
>> com.sun.mail.smtp.SMTPSendFailedException: 530-5.5.1 Authentication 
>> Required. Learn more at
>> 530 5.5.1  https://support.google.com/mail/?p=WantAuthError 
>> m68sm4994696pfb.122 - gsmtp
>>
>>  at 
>> com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2057)
>>  at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1580)
>>  at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1097)
>>  at javax.mail.Transport.send0(Transport.java:195)
>>  at javax.mail.Transport.send(Transport.java:124)
>>  at hudson.tasks.MailSender.run(MailSender.java:130)
>>  at hudson.tasks.Mailer.perform(Mailer.java:175)
>>  at hudson.tasks.Mailer.perform(Mailer.java:138)
>>  at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
>>  at 
>> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
>>  at 
>> hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
>>  at hudson.model.Build$BuildExecution.post2(Build.java:186)
>>  at 
>> hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
>>  at hudson.model.Run.execute(Run.java:1843)
>>  at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
>>  at hudson.model.ResourceController.execute(ResourceController.java:97)
>>  at hudson.model.Executor.run(Executor.java:429)
>>
>> Finished: FAILURE
>>
>>
>> Quick help is appreciated
>>
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/b114ca5a-3251-4999-bbd4-7cc506c0941d%40googlegroups.com
>> 
>> .
>>
>
>
> --
> Adrien Lecharpentier
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAKwJSvwneZdD-jSK_r9io81DFRAb1Zaqv_aEcBRPfnMp2%3DddwA%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CADXRji3ePuEOcL7u5hDB7Dhu%2BZ6obqdGqY1UjiqHSMj72cxWYQ%40mail.gmail.com.


Re: About SMTPSendFailedException

2019-09-25 Thread Adrien Lecharpentier
Hello,

I'm wondering which version of the Mailer plugin you are using on your
instance.
Is it possible that you are using a version between 1.25 and 1.27 (both
included)?
If so, please upgrade to 1.28 because you might be facing
https://issues.jenkins-ci.org/browse/JENKINS-59430.

BR,
-- Adrien

Le mer. 25 sept. 2019 à 09:25, Ajij Shaikh  a écrit :

> Hey,
>
> I am trying Jenkins for email notification please check below
> configuration and suggest the solution for it -
>
> 1. under manage Jenkins -> configure system I have set the configuration
> PFB screenshot -
>
> 2. On the same page when I check below box and give email id there to test
> connection then it sends mail successfully
>
> Test configuration by sending a test e-mail
>
> But this fails when we create the job and add mail id to post build
> actions -> Email notification -> recipient
> and check the box PFA screenshot for that
> Send e-mail for every unstable build and Send separate e-mails to
> individuals who broke the build
>
>
> 3. and trigger to a failed build
>
> 4. Unable to send the email see the stack trace of the build ---
>
>
> Started by user ajij 
> Running as SYSTEM
> Building in workspace /var/lib/jenkins/workspace/test1
> [test1] $ /bin/sh -xe /tmp/jenkins2681186595655127592.sh
> + [ -f  ]
> + echo  not found.
>  not found.
> + exit 1
> Build step 'Execute shell' marked build as failure
> Sending e-mails to: ajijsha...@gofynd.com
> ERROR: 530-5.5.1 Authentication Required. Learn more at
> 530 5.5.1  https://support.google.com/mail/?p=WantAuthError 
> m68sm4994696pfb.122 - gsmtp
>
> com.sun.mail.smtp.SMTPSendFailedException: 530-5.5.1 Authentication Required. 
> Learn more at
> 530 5.5.1  https://support.google.com/mail/?p=WantAuthError 
> m68sm4994696pfb.122 - gsmtp
>
>   at 
> com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2057)
>   at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1580)
>   at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1097)
>   at javax.mail.Transport.send0(Transport.java:195)
>   at javax.mail.Transport.send(Transport.java:124)
>   at hudson.tasks.MailSender.run(MailSender.java:130)
>   at hudson.tasks.Mailer.perform(Mailer.java:175)
>   at hudson.tasks.Mailer.perform(Mailer.java:138)
>   at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
>   at hudson.model.Build$BuildExecution.post2(Build.java:186)
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
>   at hudson.model.Run.execute(Run.java:1843)
>   at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
>   at hudson.model.ResourceController.execute(ResourceController.java:97)
>   at hudson.model.Executor.run(Executor.java:429)
>
> Finished: FAILURE
>
>
> Quick help is appreciated
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/b114ca5a-3251-4999-bbd4-7cc506c0941d%40googlegroups.com
> 
> .
>


-- 
Adrien Lecharpentier

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAKwJSvwneZdD-jSK_r9io81DFRAb1Zaqv_aEcBRPfnMp2%3DddwA%40mail.gmail.com.