Update handlePipelineStepErrors.md (#1247)

This commit is contained in:
Sven Merk
2020-03-05 10:19:02 +01:00
committed by GitHub
parent 5eb8edd3d9
commit 507bf3f98d
@@ -16,6 +16,7 @@ none
```groovy
handlePipelineStepErrors (stepName: 'executeHealthCheck', stepParameters: parameters) {
// The code you want to get controlled by the error handler goes right here into the closure
def url = new Utils().getMandatoryParameter(parameters, 'url', null)
def statusCode = curl(url)
if (statusCode != '200')