Search in sources :

Example 1 with GitEventDescription

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);
}
Also used : GitEventData(com.epam.pipeline.elasticsearchagent.model.git.GitEventData) GitEventDescription(com.epam.pipeline.elasticsearchagent.model.git.GitEventDescription)

Aggregations

GitEventData (com.epam.pipeline.elasticsearchagent.model.git.GitEventData)1 GitEventDescription (com.epam.pipeline.elasticsearchagent.model.git.GitEventDescription)1