Bugfix for handling post mortem states

Status Job ID Name Coverage
  Build
failed #44469
allowed to fail
build:jdk10

00:00:30

passed #44470
build:jdk8

00:00:58

failed #44468
allowed to fail
build:jdk9

00:00:36

 
  Test
failed #44471
allowed to fail
test

00:00:19

 
  Deploy
failed #44472
allowed to fail
deploy

00:00:18

 
Name Stage Failure
failed
deploy Deploy There is an unknown failure, please try again

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s
1 actionable task: 1 executed
ERROR: Job failed: exit code 1
failed
test Test There is an unknown failure, please try again

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s
1 actionable task: 1 executed
ERROR: Job failed: exit code 1
failed
build:jdk10 Build There is an unknown failure, please try again

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 20s
1 actionable task: 1 executed
ERROR: Job failed: exit code 1
failed
build:jdk9 Build There is an unknown failure, please try again

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 26s
1 actionable task: 1 executed
ERROR: Job failed: exit code 1