Skip to content

Commit 619a71f

Browse files
khushi-mehta-15francisf
authored andcommitted
added else block to set default host
1 parent 25fc618 commit 619a71f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main/java/com/browserstack/automate/ci/common/BrowserStackBuildWrapperOperations.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ public void buildEnvVars(Map<String, String> env) {
191191
if ( host != null ) {
192192
logEnvVar(BrowserStackEnvVars.QEI_URL, host);
193193
Constants.QualityDashboardAPI.setHost(host);
194+
} else {
195+
Constants.QualityDashboardAPI.setHost(Constants.QualityDashboardAPI.QD_DEFAULT_URL);
194196
}
195197
}
196198

src/main/java/com/browserstack/automate/ci/common/constants/Constants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public static final class SessionStatus {
6363
}
6464

6565
public static class QualityDashboardAPI {
66-
67-
public static String host = "https://quality-engineering-insights.browserstack.com";
66+
public static final String QD_DEFAULT_URL = "https://quality-engineering-insights.browserstack.com";
67+
public static String host = QD_DEFAULT_URL;
6868
public static String URL_BASE;
6969

7070
public static String getHost() {

0 commit comments

Comments
 (0)