diff --git testutils/ptest2/src/main/java/org/apache/hive/ptest/execution/JIRAService.java testutils/ptest2/src/main/java/org/apache/hive/ptest/execution/JIRAService.java index 27cd0e20e3a0f04516cc17cdc79b5dd2e65576fd..88d8cab2a69b0911a7c76dc828fd55e37b21ae40 100644 --- testutils/ptest2/src/main/java/org/apache/hive/ptest/execution/JIRAService.java +++ testutils/ptest2/src/main/java/org/apache/hive/ptest/execution/JIRAService.java @@ -135,13 +135,9 @@ void postComment(boolean error, int numTestsExecuted, SortedSet failedTe } comments.add("This message is automatically generated."); String attachmentId = parseAttachementId(mPatch); - if(!attachmentId.isEmpty()) { - comments.add(""); - comments.add("ATTACHMENT ID: " + attachmentId); - } - if(!buildInfo.getBuildName().isEmpty()) { - comments.add(" - " + buildInfo.getBuildName()); - } + comments.add(""); + comments.add("ATTACHMENT ID: " + attachmentId + + " - " + buildInfo.getBuildName()); mLogger.info("Comment: " + Joiner.on("\n").join(comments)); String body = Joiner.on("\n").join(comments); String url = String.format("%s/rest/api/2/issue/%s/comment", mUrl, mName);