override fun getParametersProcessor()

in server/src/main/kotlin/org/jetbrains/teamcity/sccache/SCCacheBuildFeature.kt [24:35]


    override fun getParametersProcessor(): PropertiesProcessor {
        return PropertiesProcessor { properties ->
            val result = SmartList<InvalidProperty>()

            val backend = properties[BuildFeatureSettings.BACKEND]
            if (backend.isNullOrEmpty() || backend == "unspecified") {
                result.add(InvalidProperty(BuildFeatureSettings.BACKEND, "Connection should be selected"))
            }

            result
        }
    }