use of com.epam.pipeline.elasticsearchagent.model.git.GitEventDescription in project cloud-pipeline by epam.
the class PipelineCodeHandler method processTagEvent.
private List<DocWriteRequest> processTagEvent(final String indexName, final Pipeline pipeline, final PermissionsContainer permissions, final List<GitEventDescription> gitEventData) {
final GitEventDescription lastEvent = Utils.last(gitEventData);
final GitEventData eventData = lastEvent.getEventData();
final String versionName = eventData.getVersion();
if (lastEvent.getPipelineEvent().getEventType() == EventType.DELETE) {
return indexService.getDeleteRequestsByTerm("pipelineVersion", versionName, indexName);
}
return createPipelineCodeDocuments(pipeline, permissions, versionName, indexName, pipelineFileIndexPaths);
}
Aggregations