Replaced Re-run possible blockers & comment JIRA with Re-run possible blockers (top queue).
diff --git a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/rest/TriggerBuilds.java b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/rest/TriggerBuilds.java
index 76c0a2b..75a8d69 100644
--- a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/rest/TriggerBuilds.java
+++ b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/rest/TriggerBuilds.java
@@ -58,6 +58,20 @@
@Context
private HttpServletRequest req;
+ /**
+ * Triggers re-running possible blocker suites.
+ *
+ * @param srvCodeOrAlias Server code or alias (e.g. Apache Ignite, GridGain, GGPrivate).
+ * @param branchForTc Branch name for TeamCity triggering.
+ * @param parentSuiteId Parent suite id for suite need to be re-run.
+ * @param suiteIdList Suite ids need to be re-run (possible blockers).
+ * @param top If {@code true} re-running suites will be placed at the top of TC queue.
+ * @param observe If {@code true} JIRA will be commented with current state of possible blockers.
+ * @param ticketId JIRA ticket id.
+ * @param prNum Pull request number in appropriate project (@code srvCodeOrAlias).
+ * @param baseBranchForTc Base branch for possible blockers comparison (e.g. master, 8.8-master)
+ * @return Result of triggering suites re-run.
+ */
@GET
@Path("trigger")
public TriggerResult triggerBuilds(
diff --git a/ignite-tc-helper-web/src/main/webapp/js/testfails-2.2.js b/ignite-tc-helper-web/src/main/webapp/js/testfails-2.2.js
index 2fb3542..0424aec 100644
--- a/ignite-tc-helper-web/src/main/webapp/js/testfails-2.2.js
+++ b/ignite-tc-helper-web/src/main/webapp/js/testfails-2.2.js
@@ -291,12 +291,12 @@
"\"" + parentSuitId + "\", " +
"\"" + blockersList + "\", " +
"\"" + chain.branchName + "\", " +
- "false, " + //top
- "true, " + //observe
+ "true, " + //top
+ "false, " + //observe
"null, " + // ticketId
"\"" + chain.prNum + "\", " + //prNum
"\"" + baseBranchForTc + "\")'> " +
- "Re-run possible blockers & Comment JIRA</button><br>";
+ "Re-run possible blockers (top queue)</button><br>";
}
if (isDefinedAndFilled(baseBranchForTc)) {