override fun failBuild()

in aws-lambda-function/src/main/java/jetbrains/buildServer/runner/lambda/MyDetachedBuildApi.kt [180:192]


    override fun failBuild(exception: Throwable, errorId: String?): Job {
        val descriptionEntry = Pair("description", exception.message ?: exception.toString())
        val params = if (errorId == null) {
            mapOf(
                descriptionEntry
            )
        } else {
            mapOf(
                descriptionEntry, Pair("identity", errorId)
            )
        }
        return logMessage(getServiceMessage("buildProblem", params))
    }