mirror of
https://github.com/SAP/jenkins-library.git
synced 2026-06-19 22:58:55 +02:00
Update handlePipelineStepErrors.md (#1247)
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user