Skip to content

Commit

Permalink
Quality Dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
darpanLalwani authored and francisf committed Jan 18, 2024
1 parent cdce8fa commit f502ee3
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,12 @@ private String zipArtifactsAndUploadToQD (String finalPathToZip, BrowserStackCre
String finalZipFilePath = packZip(finalPathToZip, jobName, browserStackCredentials);
apiUtil.logToQD(browserStackCredentials, "Final zip file's path for jobName: " + jobName + " and buildNumber: " + buildNumber + " is:" + finalZipFilePath);
String qdS3Url = uploadZipToQd(finalZipFilePath, browserStackCredentials, jobName, buildNumber);
Files.deleteIfExists(Paths.get(finalZipFilePath));
apiUtil.logToQD(browserStackCredentials, "Deleted file from server after upload for jobName: " + jobName + " and buildNumber: " + buildNumber);
if(StringUtils.isNotEmpty(finalZipFilePath)) {
Files.deleteIfExists(Paths.get(finalZipFilePath));
apiUtil.logToQD(browserStackCredentials, "Deleted file from server after upload for jobName: " + jobName + " and buildNumber: " + buildNumber);
} else {
apiUtil.logToQD(browserStackCredentials, "No zip file to delete for jobName: " + jobName + " and buildNumber: " + buildNumber);
}
return qdS3Url;
}

Expand Down

0 comments on commit f502ee3

Please sign in to comment.