File tree Expand file tree Collapse file tree 4 files changed +14
-8
lines changed
src/main/java/com/browserstack/automate/ci
jenkins/integrationService Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,11 @@ public class Constants {
2020
2121 public static final String REPORT_CONFIG_OPERATION_NAME = "report-config" ;
2222
23- public static final String REPORT_COMPLETED_STATUS = "COMPLETED" ;
24- public static final String REPORT_IN_PROGRESS_STATUS = "IN_PROGRESS" ;
25-
23+ public static enum REPORT_STATUS {
24+ IN_PROGRESS ,
25+ COMPLETED ,
26+ FAILED
27+ }
2628 // Product
2729 public static final String AUTOMATE = "automate" ;
2830 public static final String APP_AUTOMATE = "app-automate" ;
Original file line number Diff line number Diff line change 1- package com .browserstack .automate .ci .jenkins ;
1+ package com .browserstack .automate .ci .jenkins . integrationService ;
22
33import com .browserstack .automate .ci .common .constants .Constants ;
4+ import com .browserstack .automate .ci .jenkins .BrowserStackCredentials ;
45import hudson .model .Action ;
56import hudson .model .Run ;
67import org .json .JSONObject ;
@@ -71,9 +72,9 @@ private void fetchReport() {
7172 params .put ("tool" , Constants .INTEGRATIONS_TOOL_KEY );
7273
7374 try {
74- String CIReportUrlWithParams = requestsUtil .buildQueryParams (reportUrl , params );
75+ String ciReportUrlWithParams = requestsUtil .buildQueryParams (reportUrl , params );
7576 log (logger , "Fetching browserstack report " + reportName );
76- Response response = requestsUtil .makeRequest (CIReportUrlWithParams , credentials );
77+ Response response = requestsUtil .makeRequest (ciReportUrlWithParams , credentials );
7778 if (response .isSuccessful ()) {
7879 JSONObject reportResponse = new JSONObject (response .body ().string ());
7980 String reportStatus = reportResponse .optString ("report_status" );
Original file line number Diff line number Diff line change 1- package com .browserstack .automate .ci .jenkins ;
1+ package com .browserstack .automate .ci .jenkins . integrationService ;
22
33import com .browserstack .automate .ci .common .BrowserStackEnvVars ;
44import com .browserstack .automate .ci .common .constants .Constants ;
5+ import com .browserstack .automate .ci .jenkins .BrowserStackBuildAction ;
6+ import com .browserstack .automate .ci .jenkins .BrowserStackCredentials ;
57import edu .umd .cs .findbugs .annotations .NonNull ;
68import hudson .EnvVars ;
79import hudson .Extension ;
Original file line number Diff line number Diff line change 1- package com .browserstack .automate .ci .jenkins ;
1+ package com .browserstack .automate .ci .jenkins . integrationService ;
22
3+ import com .browserstack .automate .ci .jenkins .BrowserStackCredentials ;
34import okhttp3 .Credentials ;
45import okhttp3 .OkHttpClient ;
56import okhttp3 .Request ;
You can’t perform that action at this time.
0 commit comments