void run()

in src/com/epam/digital/data/platform/pipelines/stages/impl/general/InitRegistry.groovy [31:50]


    void run() {
        context.logger.info("Initializing registry and data components")
        context.registry = new Registry(context)
        context.registry.init()
        context.logger.debug("Initialized registry: ${context.registry.toString()}")
        context.registryRegulations = new RegistryRegulations(context)
        context.dataComponents = [:]
        DataComponentType.values().each {
            DataComponent dataComponent = new DataComponent(context, it.getValue(), context.codebase.version,
                    context.codebase.branch, "ssh://${context.gitServer.autouser}" +
                    "@${context.gitServer.host}:${context.gitServer.sshPort}/${context.registry.name}-${it.getValue()}",
                    context.codebase.jobProvisioner, context.codebase.jenkinsAgent)
            context.dataComponents.put(it.getValue(), dataComponent)
            context.logger.debug("Initialized data component: ${dataComponent.toString()}")
        }
        /* Remove soap-api if there is no tag "exposeSearchCondition" in data-model */
        if (context.script.sh(script: "grep -iRw exposeSearchCondition data-model/ || true", returnStdout: true).trim() == "")
            context.dataComponents.remove(DataComponentType.SOAP_API.getValue())
        context.logger.info("Registry and registry data components have been successfully initialized")
    }