Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed backlink to SonarQube in new JIRA issues #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ protected String generateIssueDescription(Issue sonarIssue, Settings settings) {
description.append(QUOTE);
description.append("\n\nCheck it on SonarQube: ");
description.append(settings.getString(CoreProperties.SERVER_BASE_URL));
description.append("/issue/show/");
description.append("/issues/show/");
description.append(sonarIssue.key());
return description.toString();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public void shouldInitRemoteIssue() throws Exception {
expectedIssue.setPriority("4");
expectedIssue.setSummary("SonarQube Issue #ABCD - Avoid cycle between java packages");
expectedIssue.setDescription("Issue detail:\n{quote}\nThe Cyclomatic Complexity of this method is 14 which is greater than 10 authorized.\n" +
"{quote}\n\n\nCheck it on SonarQube: http://my.sonar.com/issue/show/ABCD");
"{quote}\n\n\nCheck it on SonarQube: http://my.sonar.com/issues/show/ABCD");

// Verify
RemoteIssue returnedIssue = jiraIssueCreator.initRemoteIssue(sonarIssue, settings);
Expand All @@ -198,7 +198,7 @@ public void shouldInitRemoteIssueWithTaskType() throws Exception {
expectedIssue.setPriority("4");
expectedIssue.setSummary("SonarQube Issue #ABCD - Avoid cycle between java packages");
expectedIssue.setDescription("Issue detail:\n{quote}\nThe Cyclomatic Complexity of this method is 14 which is greater than 10 authorized.\n" +
"{quote}\n\n\nCheck it on SonarQube: http://my.sonar.com/issue/show/ABCD");
"{quote}\n\n\nCheck it on SonarQube: http://my.sonar.com/issues/show/ABCD");

// Verify
RemoteIssue returnedIssue = jiraIssueCreator.initRemoteIssue(sonarIssue, settings);
Expand All @@ -218,7 +218,7 @@ public void shouldInitRemoteIssueWithComponent() throws Exception {
expectedIssue.setPriority("4");
expectedIssue.setSummary("SonarQube Issue #ABCD - Avoid cycle between java packages");
expectedIssue.setDescription("Issue detail:\n{quote}\nThe Cyclomatic Complexity of this method is 14 which is greater than 10 authorized.\n" +
"{quote}\n\n\nCheck it on SonarQube: http://my.sonar.com/issue/show/ABCD");
"{quote}\n\n\nCheck it on SonarQube: http://my.sonar.com/issues/show/ABCD");
expectedIssue.setComponents(new RemoteComponent[] {new RemoteComponent("123", null)});

// Verify
Expand Down Expand Up @@ -247,7 +247,7 @@ public void shouldInitRemoteIssueWithoutName() throws Exception {
expectedIssue.setPriority("4");
expectedIssue.setSummary("SonarQube Issue #ABCD");
expectedIssue.setDescription("Issue detail:\n{quote}\nThe Cyclomatic Complexity of this method is 14 which is greater than 10 authorized.\n" +
"{quote}\n\n\nCheck it on SonarQube: http://my.sonar.com/issue/show/ABCD");
"{quote}\n\n\nCheck it on SonarQube: http://my.sonar.com/issues/show/ABCD");

// Verify
RemoteIssue returnedIssue = jiraIssueCreator.initRemoteIssue(sonarIssue, settings);
Expand Down