Skip to content

Commit 9ef21c5

Browse files
committed
adding requestType param
1 parent 940c3be commit 9ef21c5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/main/java/com/browserstack/automate/ci/jenkins/integrationService/BrowserStackTestReportAction.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,13 @@ private void fetchReport() {
8686
}
8787

8888
private Map<String, String> createReportParams() {
89+
String RquestTypeForJenkins = "POLL";
8990
Map<String, String> params = new HashMap<>();
9091
params.put("buildCreatedAt", buildCreatedAt);
9192
params.put("buildName", buildName);
9293
params.put("requestingCi", Constants.INTEGRATIONS_TOOL_KEY);
9394
params.put("reportFormat", Arrays.asList(Constants.REPORT_FORMAT).toString());
94-
params.put("requestType", "POLL");
95+
params.put("requestType", RquestTypeForJenkins);
9596
params.put("userTimeout", DEFAULT_REPORT_TIMEOUT);
9697
return params;
9798
}
@@ -172,6 +173,10 @@ public boolean isReportAvailable() {
172173
return reportStatus.equals(SUCCESS_REPORT) || reportStatus.equals(TEST_AVAILABLE);
173174
}
174175

176+
public boolean isReportTestAvailable() {
177+
return reportStatus.equals(TEST_AVAILABLE);
178+
}
179+
175180
public boolean reportHasStatus() {
176181
return !reportStatus.isEmpty() && (reportStatus.equals(REPORT_IN_PROGRESS) || reportStatus.equals(REPORT_FAILED));
177182
}

src/main/resources/com/browserstack/automate/ci/jenkins/integrationService/BrowserStackTestReportAction/index.jelly

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@
9898
</j:if>
9999

100100
<j:if test="${(it.isReportAvailable())}">
101+
<j:if test="${(it.isReportTestAvailable())}" >
102+
<p class="no-report-para"><strong class="strong-font-custom">BrowserStack Build Test Report generation In Progress meanwhile these are the test listing...</strong></p>
103+
</j:if>
101104
<div>
102105
<j:out value="${it.getReportHtml()}"/>
103106
</div>

0 commit comments

Comments
 (0)