1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00
sap-jenkins-library/documentation/docs/steps/handlePipelineStepErrors.md
2019-04-02 20:06:47 +02:00

434 B

${docGenStepName}

${docGenDescription}

Prerequisites

none

${docGenParameters}

Step configuration

none

Exceptions

none

Example

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}"
}