Skip to content

Commit

Permalink
gradle.plugin: GitFacade - check that the process for getting changed…
Browse files Browse the repository at this point in the history
… files exited normally
  • Loading branch information
ratiud committed Jul 30, 2023
1 parent bcd21c7 commit d2301b1
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ class GitFacade {
proc.consumeProcessOutput(sout, serr)
proc.waitForOrKill(60000)

if (proc.exitValue() != 0) {
throw new RuntimeException(
"""Error running command '$commandString' -
process failed with exit code ${proc.exitValue()}""".stripIndent())
}

def errorString = serr.toString()
if (errorString?.trim()) {
throw new RuntimeException(
Expand Down

0 comments on commit d2301b1

Please sign in to comment.