}
}
}
private void onArtifactUpdateEvent(ArtifactUpdatedEvent event) {
ArtifactUpdatedEvent artifactUpdatedEvent = event;
if(log.isInfoEnabled()) {
log.info(String.format("Artifact update event received: %s", artifactUpdatedEvent.toString()));
}
String clusterIdInPayload = CartridgeAgentConfiguration.getInstance().getClusterId();
String localRepoPath = CartridgeAgentConfiguration.getInstance().getAppPath();
String clusterIdInMessage = artifactUpdatedEvent.getClusterId();
String repoURL = artifactUpdatedEvent.getRepoURL();
String repoPassword = CartridgeAgentUtils.decryptPassword(artifactUpdatedEvent.getRepoPassword());
String repoUsername = artifactUpdatedEvent.getRepoUserName();
String tenantId = artifactUpdatedEvent.getTenantId();
boolean isMultitenant = CartridgeAgentConfiguration.getInstance().isMultitenant();
if(StringUtils.isNotEmpty(repoURL) && (clusterIdInPayload != null) && clusterIdInPayload.equals(clusterIdInMessage)) {
if(log.isInfoEnabled()) {
log.info("Executing git checkout");