Commit 971ec8495384caa7ee73576ddb352b3a87b1b7a8

Authored by George Vlahavas
1 parent 866567c3cf

Add catch statement

Showing 1 changed file with 3 additions and 0 deletions

keycloak_test.groovy View file @ 971ec84
... ... @@ -106,6 +106,9 @@
106 106 if ( responseCode != '401' ) {
107 107 error("$testName: Returned status code = $responseCode when calling $url")
108 108 }
  109 + } catch (ignored) {
  110 + currentBuild.result = 'FAILURE'
  111 + echo "KEA Keycloak Tests failed"
109 112 }
110 113 }
111 114 }