File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/main/java/com/lambdatest/jenkins/freestyle/report Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ public void generateLambdaTestAppAutomationReport() {
3838 byte [] authEncBytes = Base64 .getEncoder ().encode (authString .getBytes ());
3939 String authStringEnc = new String (authEncBytes );
4040 try {
41+ // Add a 5-second sleep
42+ Thread .sleep (5000 );
4143 URL buildUrl = new URL (Constant .AppAutomationReport .BUILD_INFO_URL );
4244 URLConnection buildUrlConnection = buildUrl .openConnection ();
4345 buildUrlConnection .setRequestProperty ("Authorization" , "Basic " + authStringEnc );
@@ -125,7 +127,9 @@ public void generateLambdaTestAppAutomationReport() {
125127 } catch (IOException e ) {
126128 logger .warning ("IOException : " + e .getMessage ());
127129 e .printStackTrace ();
128- }
130+ } catch (InterruptedException e1 ) {
131+ e1 .printStackTrace ();
132+ }
129133 }
130134
131135 public List <JSONObject > getResult () {
You can’t perform that action at this time.
0 commit comments