}
url += "&createdAt=" + encode(DateUtils.formatDateTime(date));
message
- .append("See it in SonarQube: ")
+ .append("More details at: ")
.append(url)
.append(NEW_LINE);
}
private void appendFooter(StringBuilder sb, Notification notification){
String issueKey = notification.getFieldValue("key");
try {
- sb.append("See it in SonarQube: ").append(settings.getServerBaseURL())
+ sb.append("More details at: ").append(settings.getServerBaseURL())
.append("/project/issues?id=").append(encode(notification.getFieldValue("projectKey"), "UTF-8"))
.append("&issues=").append(issueKey)
.append("&open=").append(issueKey);
}
url += "&createdAt=" + encode(DateUtils.formatDateTime(date));
message
- .append("See it in SonarQube: ")
+ .append("More details at: ")
.append(url)
.append(NEW_LINE);
}
}
}
- messageBody.append("\n").append("See it in SonarQube: ").append(configuration.getServerBaseURL()).append("/dashboard?id=").append(projectKey);
+ messageBody.append("\n").append("More details at: ").append(configuration.getServerBaseURL()).append("/dashboard?id=").append(projectKey);
if (branchName != null) {
messageBody.append("&branch=").append(branchName);
}
" /path/to/file: 3\n" +
" /path/to/directory: 7\n" +
"\n" +
- "See it in SonarQube: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&assignees=lo.gin&createdAt=2010-05-18");
+ "More details at: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&assignees=lo.gin&createdAt=2010-05-18");
}
@Test
" Type\n" +
" Bug: 1 Vulnerability: 3 Code Smell: 0\n" +
"\n" +
- "See it in SonarQube: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&assignees=lo.gin&createdAt=2010-05-18");
+ "More details at: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&assignees=lo.gin&createdAt=2010-05-18");
}
@Test
" Type\n" +
" Bug: 1 Vulnerability: 3 Code Smell: 0\n" +
"\n" +
- "See it in SonarQube: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&assignees=lo.gin&branch=feature1&createdAt=2010-05-18");
+ "More details at: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&assignees=lo.gin&branch=feature1&createdAt=2010-05-18");
}
@Test
" /path/to/file: 3\n" +
" /path/to/directory: 7\n" +
"\n" +
- "See it in SonarQube: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&createdAt=2010-05-1");
+ "More details at: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&createdAt=2010-05-1");
}
@Test
" Type\n" +
" Bug: 1 Vulnerability: 10 Code Smell: 3\n" +
"\n" +
- "See it in SonarQube: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&createdAt=2010-05-1");
+ "More details at: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&createdAt=2010-05-1");
}
@Test
" Type\n" +
" Bug: 1 Vulnerability: 10 Code Smell: 3\n" +
"\n" +
- "See it in SonarQube: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&branch=feature1&createdAt=2010-05-1");
+ "More details at: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&branch=feature1&createdAt=2010-05-1");
}
@Test
" - violations > 4\n" +
" - coverage < 75%\n" +
"\n" +
- "See it in SonarQube: http://nemo.sonarsource.org/dashboard?id=org.sonar.foo:foo"));
+ "More details at: http://nemo.sonarsource.org/dashboard?id=org.sonar.foo:foo"));
}
@Test
" - violations > 4\n" +
" - coverage < 75%\n" +
"\n" +
- "See it in SonarQube: http://nemo.sonarsource.org/dashboard?id=org.sonar.foo:foo&branch=feature"));
+ "More details at: http://nemo.sonarsource.org/dashboard?id=org.sonar.foo:foo&branch=feature"));
}
@Test
" - violations > 4\n" +
" - coverage < 75%\n" +
"\n" +
- "See it in SonarQube: http://nemo.sonarsource.org/dashboard?id=org.sonar.foo:foo"));
+ "More details at: http://nemo.sonarsource.org/dashboard?id=org.sonar.foo:foo"));
}
@Test
"\n" +
"New quality gate threshold: violations > 4\n" +
"\n" +
- "See it in SonarQube: http://nemo.sonarsource.org/dashboard?id=org.sonar.foo:foo"));
+ "More details at: http://nemo.sonarsource.org/dashboard?id=org.sonar.foo:foo"));
}
@Test
"\n" +
"New quality gate threshold: violations > 4\n" +
"\n" +
- "See it in SonarQube: http://nemo.sonarsource.org/dashboard?id=org.sonar.foo:foo&branch=feature"));
+ "More details at: http://nemo.sonarsource.org/dashboard?id=org.sonar.foo:foo&branch=feature"));
}
@Test
"Quality gate status: Green (was Red)\n" +
"\n" +
"\n" +
- "See it in SonarQube: http://nemo.sonarsource.org/dashboard?id=org.sonar.foo:foo"));
+ "More details at: http://nemo.sonarsource.org/dashboard?id=org.sonar.foo:foo"));
}
@Test
"Quality gate status: Green (was Red)\n" +
"\n" +
"\n" +
- "See it in SonarQube: http://nemo.sonarsource.org/dashboard?id=org.sonar.foo:foo&branch=feature"));
+ "More details at: http://nemo.sonarsource.org/dashboard?id=org.sonar.foo:foo&branch=feature"));
}
private Notification createNotification(String alertName, String alertText, String alertLevel, String isNewAlert) {
Message: Has 3 cycles
-See it in SonarQube: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&issues=ABCDE&open=ABCDE
+More details at: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&issues=ABCDE&open=ABCDE
Resolution: FIXED (was FALSE-POSITIVE)
-See it in SonarQube: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&issues=ABCDE&open=ABCDE
+More details at: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&issues=ABCDE&open=ABCDE
Action Plan changed to ABC 1.0
-See it in SonarQube: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&issues=ABCDE&open=ABCDE
+More details at: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&issues=ABCDE&open=ABCDE
Assignee changed to louis
-See it in SonarQube: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&issues=ABCDE&open=ABCDE
+More details at: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&issues=ABCDE&open=ABCDE
Message: Has 3 cycles
-See it in SonarQube: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&issues=ABCDE&open=ABCDE&branch=feature1
+More details at: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&issues=ABCDE&open=ABCDE&branch=feature1
Status: RESOLVED
Tags: [bug performance]
-See it in SonarQube: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&issues=ABCDE&open=ABCDE
+More details at: http://nemo.sonarsource.org/project/issues?id=org.apache%3Astruts&issues=ABCDE&open=ABCDE
assertThat((String) message.getContent()).contains("Type");
assertThat((String) message.getContent()).contains("One Issue Per Line (xoo): 17");
assertThat((String) message.getContent()).contains(
- "See it in SonarQube: http://localhost:9000/project/issues?id=sample&createdAt=2015-12-15T00%3A00%3A00%2B");
+ "More details at: http://localhost:9000/project/issues?id=sample&createdAt=2015-12-15T00%3A00%3A00%2B");
assertThat(emails.hasNext()).isTrue();
message = emails.next().getMimeMessage();
assertThat((String) message.getContent()).contains("sample/Sample.xoo");
assertThat((String) message.getContent()).contains("Assignee changed to Tester");
assertThat((String) message.getContent()).contains(
- "See it in SonarQube: http://localhost:9000/project/issues?id=sample&issues=" + issue.key() + "&open=" + issue.key());
+ "More details at: http://localhost:9000/project/issues?id=sample&issues=" + issue.key() + "&open=" + issue.key());
assertThat(emails.hasNext()).isFalse();
}
assertThat((String) message.getContent()).contains("sample/Sample.xoo");
assertThat((String) message.getContent()).contains("Severity: BLOCKER (was MINOR)");
assertThat((String) message.getContent()).contains(
- "See it in SonarQube: http://localhost:9000/project/issues?id=sample&issues=" + issue.key() + "&open=" + issue.key());
+ "More details at: http://localhost:9000/project/issues?id=sample&issues=" + issue.key() + "&open=" + issue.key());
assertThat(emails.hasNext()).isFalse();
}