Kotlin compiles the project properly on local machine but through Jenkins it throws exception Kotlin compiles the project properly on local machine but through Jenkins it throws exception jenkins jenkins

Kotlin compiles the project properly on local machine but through Jenkins it throws exception


It seems that the exception was related to kotlin type inference. After I indicate the type specifically compilation has done without an error. But why? Still don't understand how my machine compiles with type inference?

companion object {    const val QUEUE_CLUSTER_ID: String = "Commands"}