Japheth Odonya
Japheth Odonya

Reputation: 333

Hudson Continuous Integration configuration

I have set up Hudson but I am having difficulties, getting it to send mails, I have provided an smtp server (the gmail smtp server) but if I do tests, I get this error.

Failed to send out e-mail

com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first.

I have seen some discussions on this in the forum when enabling tls through the command.

$ java -Dmail.smtp.starttls.enable="true" -jar hudson.war

How can you set tls to start if you are using hudson in tomcat? Is there some configuration file you can use?

Upvotes: 1

Views: 1938

Answers (1)

HefferWolf
HefferWolf

Reputation: 3924

set your JAVA_OPTS to -Dmail.smtp.starttls.enable=true before starting your tomcat, if you're on unix you can just add

JAVA_OPTS="-Dmail.smtp.starttls.enable=true"

to your $TOMCAT_HOME/bin/catalina.sh (somewhere at the top). On Windows I would set this in the cmdline-Environment.

Upvotes: 4

Related Questions