Skip to content

Instantly share code, notes, and snippets.

@kdabir
Created April 15, 2016 06:42
Show Gist options
  • Save kdabir/8d180b2f9d7e0109bab8b996281d6b22 to your computer and use it in GitHub Desktop.
Save kdabir/8d180b2f9d7e0109bab8b996281d6b22 to your computer and use it in GitHub Desktop.
Gradle do something on build failure
gradle.buildFinished { buildResult ->
if (buildResult.failure) {
println "do something on failure"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment