File bundle = new File(bundleRoot+File.separator+".."+File.separator+config.getId()+".tar.gz");
PushUtils.compressFiles(list, bundle, bundleRoot.getAbsolutePath());
List<Environment> environments = APILocator.getEnvironmentAPI().findEnvironmentsByBundleId(config.getId());
ClientConfig cc = new DefaultClientConfig();
if(Config.getStringProperty("TRUSTSTORE_PATH") != null && !Config.getStringProperty("TRUSTSTORE_PATH").trim().equals("")) {
cc.getProperties().put(HTTPSProperties.PROPERTY_HTTPS_PROPERTIES, new HTTPSProperties(tFactory.getHostnameVerifier(), tFactory.getSSLContext()));
}
Client client = Client.create(cc);
//Updating audit table
currentStatusHistory = pubAuditAPI.getPublishAuditStatus(config.getId()).getStatusPojo();