Skip to content

Commit 850132b

Browse files
committed
add (will be reverted): staging endpoints
1 parent 45b0b46 commit 850132b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/main/java/com/browserstack/automate/ci/common/tracking/PluginsTracker.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717

1818
public class PluginsTracker {
1919
private static final MediaType JSON = MediaType.get("application/json; charset=utf-8");
20-
private static final String URL = "https://api.browserstack.com/ci_plugins/track";
20+
// private static final String URL = "https://api.browserstack.com/ci_plugins/track";
21+
private static final String URL = "https://apiwtf2.bsstag.com/ci_plugins/track";
2122
private static final OkHttpClient client = new OkHttpClient();
2223
private final String trackingId;
2324
private String username;

src/main/java/com/browserstack/automate/ci/jenkins/BrowserStackReportForBuild.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,12 @@ private void fetchBuildAndSessions() {
8585

8686
BrowserStackClient client;
8787
if (projectType == ProjectType.APP_AUTOMATE) {
88+
// will be removing the following line...
89+
System.setProperty("browserstack.app-automate.api", "https://apiwtf2.bsstag.com/app-automate");
8890
client = new AppAutomateClient(credentials.getUsername(), credentials.getDecryptedAccesskey());
8991
} else {
92+
// will be removing the following line before publishing for production
93+
System.setProperty("browserstack.automate.api", "https://apiwtf2.bsstag.com/automate");
9094
client = new AutomateClient(credentials.getUsername(), credentials.getDecryptedAccesskey());
9195
}
9296

0 commit comments

Comments
 (0)