Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Nov 13, 2023
1 parent 14a4c03 commit a406a21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buildSrc/src/main/groovy/Docker.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ class Docker {
from dockerCopyLocation

doLast {
// If the actual task has already failed, we need to fail this task to signal to any downstream
// tasks to not continue. Under normal circumstances, we might just not run this Sync task at
// all to signal this, however in our case we want to copy out artifacts of failure for easier
// debugging.
if (buildAndRun.get().state.failure != null) {
throw new GradleException('Docker task failed, see earlier task failures for details')
}
Expand Down

0 comments on commit a406a21

Please sign in to comment.