Slackbot
01/22/2023, 2:44 PMephemient
01/22/2023, 2:49 PMgradle.startParameter.isContinueOnFailure
?Javi
01/22/2023, 2:51 PMephemient
01/22/2023, 2:59 PMtask.configure {
val existingActions = actions
val wrappedAction = Action<Task> {
try {
for (action in existingActions) action.execute(this)
} catch (e: RuntimeException) {
logger.error("Exception: ", e)
}
}
actions = listOf(wrappedAction)
}
but I don't think there's a way to simulate `--continue`'s behavior of "on failure, continue building other non-dependents, but don't build dependents and fail the build at the end" on just a single taskJavi
01/22/2023, 3:03 PMonlyIf
which should be a better approach.
Thank you anyway 🙂Vampire
01/22/2023, 3:53 PMonlyIf
seems better in that case.
But other than that, there are some tasks that explicitly support such a configuration like test tasks that have a property for not failing on failed tests.
But other than that, just what @ephemient shows, wrapping the actions, catching exceptions.ephemient
01/22/2023, 3:57 PMonlyIf
?Javi
01/22/2023, 4:01 PM