Skip to content

Commit 6efe3a1

Browse files
authored
Merge pull request #51 from reportportal/rc/5.13.1
Release 5.13.1
2 parents 9e20d71 + 063ddf5 commit 6efe3a1

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,21 @@ ext['spring-boot.version'] = "${springBootVersion}"
3636

3737
dependencyManagement {
3838
imports {
39-
mavenBom(releaseMode ? 'com.epam.reportportal:commons-bom:' + getProperty('bom.version') : 'com.epam.reportportal:commons-bom:5.12.1')
39+
mavenBom(releaseMode ? 'com.epam.reportportal:commons-bom:' + getProperty('bom.version') : 'com.epam.reportportal:commons-bom:5.14.3')
4040
}
4141
}
4242

4343
ext['junit-jupiter.version'] = "${junitVersion}"
4444

4545
dependencies {
4646
if (releaseMode) {
47-
implementation 'com.epam.reportportal:commons-dao'
47+
implementation 'com.github.reportportal:commons-dao:71ef80c'
4848
implementation 'com.epam.reportportal:plugin-api'
4949
annotationProcessor 'com.epam.reportportal:plugin-api'
5050
} else {
51-
implementation 'com.github.reportportal:commons-dao:1296d7c'
52-
implementation 'com.github.reportportal:plugin-api:8874441'
53-
annotationProcessor 'com.github.reportportal:plugin-api:8874441'
51+
implementation 'com.github.reportportal:commons-dao:71ef80c'
52+
implementation 'com.epam.reportportal:plugin-api'
53+
annotationProcessor 'com.epam.reportportal:plugin-api'
5454
}
5555
implementation 'org.hibernate.orm:hibernate-core:6.6.5.Final'
5656

src/main/java/com/epam/reportportal/extension/bugtracking/rally/RallyStrategy.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,8 @@ public Optional<Ticket> getTicket(final String id, Integration integration) {
201201
}
202202
ticket = toTicket(optionalDefect.get(), integration);
203203
} catch (Exception ex) {
204-
LOGGER.error("Unable load ticket :" + ex.getMessage(), ex);
205-
throw new ReportPortalException(
206-
UNABLE_INTERACT_WITH_INTEGRATION, "Unable load ticket :" + ex.getMessage(), ex);
204+
LOGGER.error("Unable load ticket :{}", ex.getMessage(), ex);
205+
throw new ReportPortalException(UNABLE_INTERACT_WITH_INTEGRATION, "Unable load ticket");
207206
}
208207
return Optional.of(ticket);
209208
}
@@ -233,8 +232,7 @@ public Ticket submitTicket(final PostTicketRQ ticketRQ, Integration integration)
233232
return toTicket(newDefect, integration);
234233
} catch (Exception e) {
235234
LOGGER.error("Unable to submit ticket: " + e.getMessage(), e);
236-
throw new ReportPortalException(
237-
UNABLE_INTERACT_WITH_INTEGRATION, "Unable to submit ticket: " + e.getMessage(), e);
235+
throw new ReportPortalException(UNABLE_INTERACT_WITH_INTEGRATION, "Unable to submit ticket");
238236
}
239237
}
240238

@@ -310,8 +308,7 @@ private Ticket toTicket(Defect defect, Integration externalSystem) {
310308
return ticket;
311309
}
312310

313-
private Defect postDefect(RallyRestApi restApi, PostTicketRQ ticketRQ, Integration externalSystem)
314-
throws IOException {
311+
private Defect postDefect(RallyRestApi restApi, PostTicketRQ ticketRQ, Integration externalSystem) {
315312
JsonObject newDefect = new JsonObject();
316313
List<PostFormField> fields = ticketRQ.getFields();
317314
List<PostFormField> savedFields = new ArrayList<>();
@@ -324,7 +321,7 @@ private Defect postDefect(RallyRestApi restApi, PostTicketRQ ticketRQ, Integrati
324321
.constructParametricType(List.class, PostFormField.class)
325322
));
326323
} catch (IOException e) {
327-
LOGGER.error("Unable to parse post form fields: ", e.getMessage());
324+
LOGGER.error("Unable to parse post form fields: {}", e.getMessage());
328325
throw new ReportPortalException(UNABLE_INTERACT_WITH_INTEGRATION, e);
329326
}
330327

@@ -430,7 +427,7 @@ private RallyObject postImage(String itemRef, InternalTicket.LogEntry logEntry,
430427
checkResponse(attachmentResponse);
431428
return gson.fromJson(attachmentResponse.getObject(), RallyObject.class);
432429
} catch (IOException e) {
433-
LOGGER.error("Unable to post ticket image: " + e.getMessage() + "\n" + Arrays.toString(
430+
LOGGER.error("Unable to post ticket image: {}\n{}", e.getMessage(), Arrays.toString(
434431
e.getStackTrace()), e);
435432
throw new ReportPortalException(
436433
UNABLE_INTERACT_WITH_INTEGRATION, "Unable to post ticket image: " + e.getMessage(), e);

0 commit comments

Comments
 (0)