2019-03-29 14:12:28 +02:00
|
|
|
# ${docGenStepName}
|
2017-07-11 15:12:03 +02:00
|
|
|
|
2019-03-29 14:12:28 +02:00
|
|
|
## ${docGenDescription}
|
2017-07-11 15:12:03 +02:00
|
|
|
|
|
|
|
## Prerequisites
|
2018-11-06 14:50:09 +02:00
|
|
|
|
2017-07-11 15:12:03 +02:00
|
|
|
none
|
|
|
|
|
2019-03-29 14:12:28 +02:00
|
|
|
## ${docGenParameters}
|
2017-07-11 15:12:03 +02:00
|
|
|
|
2018-03-06 14:43:53 +02:00
|
|
|
## Step configuration
|
2018-11-06 14:50:09 +02:00
|
|
|
|
2018-03-06 14:43:53 +02:00
|
|
|
none
|
|
|
|
|
2017-07-11 15:12:03 +02:00
|
|
|
## Exceptions
|
2018-11-06 14:50:09 +02:00
|
|
|
|
2017-07-11 15:12:03 +02:00
|
|
|
none
|
|
|
|
|
|
|
|
## Example
|
2018-11-06 14:50:09 +02:00
|
|
|
|
2017-07-11 15:12:03 +02:00
|
|
|
```groovy
|
|
|
|
handlePipelineStepErrors (stepName: 'executeHealthCheck', stepParameters: parameters) {
|
|
|
|
def url = new Utils().getMandatoryParameter(parameters, 'url', null)
|
|
|
|
def statusCode = curl(url)
|
|
|
|
if (statusCode != '200')
|
|
|
|
error "Health Check failed: ${statusCode}"
|
|
|
|
}
|
|
|
|
```
|