mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
If a build has no change, e-mail shouldn't link to the empty changeset page.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14541 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
8bc5f0b5e9
commit
bfcc96bbc9
1 file changed
+4
-3
@@ -14,8 +14,6 @@ import javax.mail.internet.InternetAddress;
|
||||
import javax.mail.internet.MimeMessage;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
import java.util.Date;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
@@ -149,7 +147,10 @@ public class MailSender {
|
||||
private void appendBuildUrl(AbstractBuild<?, ?> build, StringBuffer buf) {
|
||||
String baseUrl = Mailer.DESCRIPTOR.getUrl();
|
||||
if (baseUrl != null) {
|
||||
buf.append("See ").append(baseUrl).append(Util.encode(build.getUrl())).append("changes\n\n");
|
||||
buf.append("See ").append(baseUrl).append(Util.encode(build.getUrl()));
|
||||
if(!build.getChangeSet().isEmptySet())
|
||||
buf.append("changes");
|
||||
buf.append("\n\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user