if(StringUtils.isNotEmpty(repoURL) && (clusterIdInPayload != null) && clusterIdInPayload.equals(clusterIdInMessage)) {
if(log.isInfoEnabled()) {
log.info("Executing git checkout");
}
RepositoryInformation repoInformation = new RepositoryInformation();
repoInformation.setRepoUsername(repoUsername);
if(repoPassword == null) {
repoInformation.setRepoPassword("");
}else {
repoInformation.setRepoPassword(repoPassword);
}
repoInformation.setRepoUrl(repoURL);
repoInformation.setRepoPath(localRepoPath);
repoInformation.setTenantId(tenantId);
repoInformation.setMultitenant(isMultitenant);
boolean cloneExists = GitBasedArtifactRepository.getInstance().cloneExists(repoInformation);
GitBasedArtifactRepository.getInstance().checkout(repoInformation);
ExtensionUtils.executeArtifactsUpdatedExtension();